summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/packagemanager/filterdlg.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/settings/packagemanager/filterdlg.h b/noncore/settings/packagemanager/filterdlg.h
index 42bae8b..de9ea80 100644
--- a/noncore/settings/packagemanager/filterdlg.h
+++ b/noncore/settings/packagemanager/filterdlg.h
@@ -44,39 +44,39 @@ class FilterDlg : public QDialog
44 Q_OBJECT 44 Q_OBJECT
45 45
46public: 46public:
47 FilterDlg( QWidget *parent = 0x0, OPackageManager *pm = 0x0, const QString &name = 0x0, 47 FilterDlg( QWidget *parent = 0x0, OPackageManager *pm = 0x0, const QString &name = 0x0,
48 const QString &server = 0x0, const QString &destination = 0x0, 48 const QString &server = 0x0, const QString &destination = 0x0,
49 OPackageManager::Status status = OPackageManager::All, 49 OPackageManager::Status status = OPackageManager::All,
50 const QString &category = 0x0 ); 50 const QString &category = 0x0 );
51 51
52 const QString &name() 52 QString name()
53 { return m_nameCB->isChecked() ? m_name->text() : QString::null; }; 53 { return m_nameCB->isChecked() ? m_name->text() : QString::null; };
54 const QString &server() 54 QString server()
55 { return m_serverCB->isChecked() ? m_server->currentText() : QString::null; }; 55 { return m_serverCB->isChecked() ? m_server->currentText() : QString::null; };
56 const QString &destination() 56 QString destination()
57 { return m_destCB->isChecked() ? m_destination->currentText() : QString::null; }; 57 { return m_destCB->isChecked() ? m_destination->currentText() : QString::null; };
58 OPackageManager::Status status() 58 OPackageManager::Status status()
59 { 59 {
60 if ( m_statusCB->isChecked() ) 60 if ( m_statusCB->isChecked() )
61 { 61 {
62 if ( m_status->currentText() == tr( "All" ) ) 62 if ( m_status->currentText() == tr( "All" ) )
63 return OPackageManager::All; 63 return OPackageManager::All;
64 else if ( m_status->currentText() == tr( "Installed" ) ) 64 else if ( m_status->currentText() == tr( "Installed" ) )
65 return OPackageManager::Installed; 65 return OPackageManager::Installed;
66 else if ( m_status->currentText() == tr( "Not installed" ) ) 66 else if ( m_status->currentText() == tr( "Not installed" ) )
67 return OPackageManager::NotInstalled; 67 return OPackageManager::NotInstalled;
68 else if ( m_status->currentText() == tr( "Updated" ) ) 68 else if ( m_status->currentText() == tr( "Updated" ) )
69 return OPackageManager::Updated; 69 return OPackageManager::Updated;
70 } 70 }
71 else 71
72 return OPackageManager::NotDefined; 72 return OPackageManager::NotDefined;
73 }; 73 };
74 const QString &category() 74 QString category()
75 { return m_categoryCB->isChecked() ? m_category->currentText() : QString::null; }; 75 { return m_categoryCB->isChecked() ? m_category->currentText() : QString::null; };
76 76
77private: 77private:
78 QCheckBox *m_nameCB; 78 QCheckBox *m_nameCB;
79 QCheckBox *m_serverCB; 79 QCheckBox *m_serverCB;
80 QCheckBox *m_destCB; 80 QCheckBox *m_destCB;
81 QCheckBox *m_statusCB; 81 QCheckBox *m_statusCB;
82 QCheckBox *m_categoryCB; 82 QCheckBox *m_categoryCB;