-rw-r--r-- | noncore/settings/packagemanager/filterdlg.h | 10 |
1 files changed, 5 insertions, 5 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 @@ -48,13 +48,13 @@ public: const QString &server = 0x0, const QString &destination = 0x0, OPackageManager::Status status = OPackageManager::All, const QString &category = 0x0 ); - const QString &name() + QString name() { return m_nameCB->isChecked() ? m_name->text() : QString::null; }; - const QString &server() + QString server() { return m_serverCB->isChecked() ? m_server->currentText() : QString::null; }; - const QString &destination() + QString destination() { return m_destCB->isChecked() ? m_destination->currentText() : QString::null; }; OPackageManager::Status status() { if ( m_statusCB->isChecked() ) @@ -67,12 +67,12 @@ public: return OPackageManager::NotInstalled; else if ( m_status->currentText() == tr( "Updated" ) ) return OPackageManager::Updated; } - else + return OPackageManager::NotDefined; }; - const QString &category() + QString category() { return m_categoryCB->isChecked() ? m_category->currentText() : QString::null; }; private: QCheckBox *m_nameCB; |