author | drw <drw> | 2004-03-26 15:31:48 (UTC) |
---|---|---|
committer | drw <drw> | 2004-03-26 15:31:48 (UTC) |
commit | a49f5d4c801068e94d91fd5b3cf7ec06cddab537 (patch) (side-by-side diff) | |
tree | 73c157799dc961a82c0af52240ccd73f689c3b97 | |
parent | 50ea752cc48729aa9dd3948e40a18a047c1b821b (diff) | |
download | opie-a49f5d4c801068e94d91fd5b3cf7ec06cddab537.zip opie-a49f5d4c801068e94d91fd5b3cf7ec06cddab537.tar.gz opie-a49f5d4c801068e94d91fd5b3cf7ec06cddab537.tar.bz2 |
Fix compiler warnings
-rw-r--r-- | noncore/settings/packagemanager/filterdlg.h | 12 |
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 @@ -28,71 +28,71 @@ */ #ifndef FILTERDLG_H #define FILTERDLG_H #include <qcheckbox.h> #include <qdialog.h> #include <qcombobox.h> #include <qlayout.h> #include <qlineedit.h> #include <qscrollview.h> #include "opackagemanager.h" class FilterDlg : public QDialog { Q_OBJECT public: FilterDlg( QWidget *parent = 0x0, OPackageManager *pm = 0x0, const QString &name = 0x0, 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() ) { if ( m_status->currentText() == tr( "All" ) ) return OPackageManager::All; else if ( m_status->currentText() == tr( "Installed" ) ) return OPackageManager::Installed; else if ( m_status->currentText() == tr( "Not installed" ) ) return OPackageManager::NotInstalled; else if ( m_status->currentText() == tr( "Updated" ) ) return OPackageManager::Updated; } - else - return OPackageManager::NotDefined; + + return OPackageManager::NotDefined; }; - const QString &category() + QString category() { return m_categoryCB->isChecked() ? m_category->currentText() : QString::null; }; private: QCheckBox *m_nameCB; QCheckBox *m_serverCB; QCheckBox *m_destCB; QCheckBox *m_statusCB; QCheckBox *m_categoryCB; QLineEdit *m_name; QComboBox *m_server; QComboBox *m_destination; QComboBox *m_status; QComboBox *m_category; void initItem( QComboBox *comboBox, QCheckBox *checkBox, const QString &selection ); private slots: void slotNameSelected( bool ); void slotServerSelected( bool ); void slotDestSelected( bool ); void slotStatusSelected( bool ); void slotStatusChanged( const QString & ); void slotCategorySelected( bool ); |