author | andyq <andyq> | 2002-11-03 01:19:52 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-03 01:19:52 (UTC) |
commit | 485fae36510cb42690c9df55fae64312b1e656ae (patch) (unidiff) | |
tree | a629829c2fdee60af78cb78184f4d6c27f384c89 /noncore/settings/aqpkg/mainwin.cpp | |
parent | d04882e254eb91aa26fb46bf49c438d12fcda862 (diff) | |
download | opie-485fae36510cb42690c9df55fae64312b1e656ae.zip opie-485fae36510cb42690c9df55fae64312b1e656ae.tar.gz opie-485fae36510cb42690c9df55fae64312b1e656ae.tar.bz2 |
Added search for package feature
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 9f19dfa..0b5a5eb 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -43,11 +43,15 @@ MainWindow :: MainWindow( QWidget *p, char *name ) | |||
43 | 43 | ||
44 | QPopupMenu *settings = new QPopupMenu( this ); | 44 | QPopupMenu *settings = new QPopupMenu( this ); |
45 | settings->insertItem( "&Settings", this, SLOT(displaySettings()), Qt::CTRL+Qt::Key_S ); | 45 | settings->insertItem( "&Settings", this, SLOT(displaySettings()), Qt::CTRL+Qt::Key_S ); |
46 | 46 | ||
47 | QPopupMenu *edit = new QPopupMenu( this ); | ||
48 | edit->insertItem( "&Search", this, SLOT(searchForPackage()), Qt::CTRL+Qt::Key_F ); | ||
49 | |||
47 | // Create the main menu | 50 | // Create the main menu |
48 | QMenuBar *menu = menuBar(); //new QMenuBar( this ); | 51 | QMenuBar *menu = menuBar(); //new QMenuBar( this ); |
49 | menu->insertItem( "&Settings", settings ); | 52 | menu->insertItem( "&Settings", settings ); |
53 | menu->insertItem( "&Edit", edit ); | ||
50 | menu->insertItem( "&Help", help ); | 54 | menu->insertItem( "&Help", help ); |
51 | 55 | ||
52 | mgr = new DataManager(); | 56 | mgr = new DataManager(); |
53 | mgr->loadServers(); | 57 | mgr->loadServers(); |
@@ -88,8 +92,13 @@ void MainWindow :: displayHelp() | |||
88 | dlg->exec(); | 92 | dlg->exec(); |
89 | delete dlg; | 93 | delete dlg; |
90 | } | 94 | } |
91 | 95 | ||
96 | void MainWindow :: searchForPackage() | ||
97 | { | ||
98 | networkPkgWindow->searchForPackage(); | ||
99 | } | ||
100 | |||
92 | void MainWindow :: displayAbout() | 101 | void MainWindow :: displayAbout() |
93 | { | 102 | { |
94 | QMessageBox::about( this, "About AQPkg", VERSION_TEXT ); | 103 | QMessageBox::about( this, "About AQPkg", VERSION_TEXT ); |
95 | } | 104 | } |