Diffstat (limited to 'noncore/settings/packagemanager/filterdlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/filterdlg.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/noncore/settings/packagemanager/filterdlg.cpp b/noncore/settings/packagemanager/filterdlg.cpp index eeed398..70875bd 100644 --- a/noncore/settings/packagemanager/filterdlg.cpp +++ b/noncore/settings/packagemanager/filterdlg.cpp @@ -30,8 +30,10 @@ #include "filterdlg.h" +#include <qwhatsthis.h> + FilterDlg::FilterDlg( QWidget *parent, OPackageManager *pm, const QString &name, const QString &server, const QString &destination, OPackageManager::Status status, const QString &category ) - : QDialog( parent, QString::null, true ) + : QDialog( parent, QString::null, true, WStyle_ContextHelp ) { setCaption( tr( "Filter packages" ) ); @@ -48,6 +50,8 @@ FilterDlg::FilterDlg( QWidget *parent, OPackageManager *pm, const QString &name, // Category m_categoryCB = new QCheckBox( tr( "Category:" ), container ); + QWhatsThis::add( m_categoryCB, tr( "Tap here to filter package list by application category." ) ); connect( m_categoryCB, SIGNAL(toggled(bool)), this, SLOT(slotCategorySelected(bool)) ); m_category = new QComboBox( container ); + QWhatsThis::add( m_category, tr( "Select the application category to filter by here." ) ); m_category->insertStringList( pm->categories() ); initItem( m_category, m_categoryCB, category ); @@ -57,6 +61,8 @@ FilterDlg::FilterDlg( QWidget *parent, OPackageManager *pm, const QString &name, // Package name m_nameCB = new QCheckBox( tr( "Names containing:" ), container ); + QWhatsThis::add( m_nameCB, tr( "Tap here to filter package list by package name." ) ); connect( m_nameCB, SIGNAL(toggled(bool)), this, SLOT(slotNameSelected(bool)) ); m_name = new QLineEdit( name, container ); + QWhatsThis::add( m_name, tr( "Enter the package name to filter by here." ) ); if ( !name.isNull() ) m_nameCB->setChecked( true ); @@ -67,6 +73,8 @@ FilterDlg::FilterDlg( QWidget *parent, OPackageManager *pm, const QString &name, // Status m_statusCB = new QCheckBox( tr( "With the status:" ), container ); + QWhatsThis::add( m_statusCB, tr( "Tap here to filter package list by the package status." ) ); connect( m_statusCB, SIGNAL(toggled(bool)), this, SLOT(slotStatusSelected(bool)) ); m_status = new QComboBox( container ); + QWhatsThis::add( m_status, tr( "Select the package status to filter by here." ) ); connect( m_status, SIGNAL(activated(const QString&)), this, SLOT(slotStatusChanged(const QString&)) ); QString currStatus; @@ -93,6 +101,8 @@ FilterDlg::FilterDlg( QWidget *parent, OPackageManager *pm, const QString &name, // Server m_serverCB = new QCheckBox( tr( "Available from the following server:" ), container ); + QWhatsThis::add( m_serverCB, tr( "Tap here to filter package list by source server." ) ); connect( m_serverCB, SIGNAL(toggled(bool)), this, SLOT(slotServerSelected(bool)) ); m_server = new QComboBox( container ); + QWhatsThis::add( m_server, tr( "Select the source server to filter by here." ) ); m_server->insertStringList( *(pm->servers()) ); initItem( m_server, m_serverCB, server ); @@ -102,12 +112,12 @@ FilterDlg::FilterDlg( QWidget *parent, OPackageManager *pm, const QString &name, // Destination m_destCB = new QCheckBox( tr( "Installed on device at:" ), container ); + QWhatsThis::add( m_destCB, tr( "Tap here to filter package list by destination where the package is installed to on this device." ) ); connect( m_destCB, SIGNAL(toggled(bool)), this, SLOT(slotDestSelected(bool)) ); m_destination = new QComboBox( container ); + QWhatsThis::add( m_destination, tr( "Select the destination location to filter by here." ) ); m_destination->insertStringList( *(pm->destinations()) ); initItem( m_destination, m_destCB, destination ); layout->addWidget( m_destCB ); layout->addWidget( m_destination ); - - //showMaximized(); } |