~ubuntu-branches/ubuntu/saucy/minitube/saucy-proposed

« back to all changes in this revision

Viewing changes to src/searchparams.cpp

  • Committer: Package Import Robot
  • Author(s): Jakob Haufe
  • Date: 2012-09-29 02:43:53 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120929024353-fxbrlvqxrlu6cwld
Tags: upstream-1.9
ImportĀ upstreamĀ versionĀ 1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "searchparams.h"
2
2
 
3
3
SearchParams::SearchParams() {
 
4
    m_transient = false;
4
5
    m_sortBy = SortByRelevance;
5
 
    m_transient = false;
 
6
    m_duration = DurationAny;
 
7
    m_quality = QualityAny;
 
8
    m_time = TimeAny;
 
9
}
 
10
 
 
11
void SearchParams::setParam(QString name, QVariant value) {
 
12
    bool success = setProperty(name.toUtf8(), value);
 
13
    if (!success) qWarning() << "Failed to set property" << name << value.toString();
6
14
}