summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/mainwin.cpp
authordrw <drw>2003-01-05 01:13:45 (UTC)
committer drw <drw>2003-01-05 01:13:45 (UTC)
commitdb5ab38ee45f202f4a627085e7457a2511abceb4 (patch) (side-by-side diff)
tree5080aed27ffaac6cfb91ca0ad4c20e74b4a3508a /noncore/settings/aqpkg/mainwin.cpp
parent8b0f280e69a6c5b4c1caf4070085feaf0951380d (diff)
downloadopie-db5ab38ee45f202f4a627085e7457a2511abceb4.zip
opie-db5ab38ee45f202f4a627085e7457a2511abceb4.tar.gz
opie-db5ab38ee45f202f4a627085e7457a2511abceb4.tar.bz2
Remove unused dialog and menu shortcut key combos. Also added a bunch of tr()'s to existing strings. Note to translators: These strings might be changing in the next couple of weeks as I do some UI updates.
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/mainwin.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp
index 5e03f11..e577285 100644
--- a/noncore/settings/aqpkg/mainwin.cpp
+++ b/noncore/settings/aqpkg/mainwin.cpp
@@ -43,30 +43,30 @@ MainWindow :: MainWindow( QWidget *p, char *name )
// Create our menu
help = new QPopupMenu( this );
- help->insertItem( "&General", this, SLOT(displayHelp()), Qt::CTRL+Qt::Key_G );
- help->insertItem( "&About", this, SLOT(displayAbout()), Qt::CTRL+Qt::Key_A );
+ help->insertItem( tr( "General" ), this, SLOT(displayHelp()) );
+ help->insertItem( tr( "About" ), this, SLOT(displayAbout()) );
settings = new QPopupMenu( this );
- settings->insertItem( "&Settings", this, SLOT(displaySettings()), Qt::CTRL+Qt::Key_S );
+ settings->insertItem( tr( "Settings" ), this, SLOT(displaySettings()) );
edit = new QPopupMenu( this );
- edit->insertItem( "&Find", this, SLOT(searchForPackage()), Qt::CTRL+Qt::Key_I );
- edit->insertItem( "Find &Next", this, SLOT(repeatSearchForPackage()), Qt::CTRL+Qt::Key_N );
+ edit->insertItem( tr( "Find" ), this, SLOT(searchForPackage()) );
+ edit->insertItem( tr( "Find Next" ), this, SLOT(repeatSearchForPackage()) );
filter = new QPopupMenu( this );
- mnuShowUninstalledPkgsId = filter->insertItem( "Show &Non-Installed Packages", this, SLOT(filterUninstalledPackages()), Qt::CTRL+Qt::Key_U );
- mnuShowInstalledPkgsId = filter->insertItem( "Show In&stalled Packages", this, SLOT(filterInstalledPackages()), Qt::CTRL+Qt::Key_S );
- mnuShowUpgradedPkgsId = filter->insertItem( "Show U&pdated Packages", this, SLOT(filterUpgradedPackages()), Qt::CTRL+Qt::Key_P );
+ mnuShowUninstalledPkgsId = filter->insertItem( tr( "Show Non-Installed Packages" ), this, SLOT(filterUninstalledPackages()) );
+ mnuShowInstalledPkgsId = filter->insertItem( tr( "Show Installed Packages" ), this, SLOT(filterInstalledPackages()) );
+ mnuShowUpgradedPkgsId = filter->insertItem( tr( "Show Updated Packages" ), this, SLOT(filterUpgradedPackages()) );
filter->insertSeparator();
- mnuFilterByCategory = filter->insertItem( "Filter By &Category", this, SLOT(filterCategory()), Qt::CTRL+Qt::Key_C );
- mnuSetFilterCategory = filter->insertItem( "Set Filter C&ategory", this, SLOT(setFilterCategory()), Qt::CTRL+Qt::Key_A );
+ mnuFilterByCategory = filter->insertItem( tr( "Filter By Category" ), this, SLOT(filterCategory()) );
+ mnuSetFilterCategory = filter->insertItem( tr( "Set Filter Category" ), this, SLOT(setFilterCategory()) );
// Create the main menu
menu = menuBar(); //new QMenuBar( this );
- menu->insertItem( tr( "&Settings" ), settings );
- menu->insertItem( tr( "&Edit" ), edit );
- menu->insertItem( tr( "&Filter" ), filter );
- menu->insertItem( tr( "&Help" ), help );
+ menu->insertItem( tr( "Settings" ), settings );
+ menu->insertItem( tr( "Edit" ), edit );
+ menu->insertItem( tr( "Filter" ), filter );
+ menu->insertItem( tr( "Help" ), help );
// Create UI widgets
stack = new QWidgetStack( this );
@@ -145,7 +145,7 @@ void MainWindow :: repeatSearchForPackage()
void MainWindow :: displayAbout()
{
- QMessageBox::about( this, "About AQPkg", VERSION_TEXT );
+ QMessageBox::about( this, tr( "About AQPkg" ), tr( VERSION_TEXT ) );
}