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 206d11c..9f19dfa 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -23,8 +23,9 @@ | |||
23 | #include "datamgr.h" | 23 | #include "datamgr.h" |
24 | #include "networkpkgmgr.h" | 24 | #include "networkpkgmgr.h" |
25 | #include "settingsimpl.h" | 25 | #include "settingsimpl.h" |
26 | #include "helpwindow.h" | 26 | #include "helpwindow.h" |
27 | #include "utils.h" | ||
27 | #include "global.h" | 28 | #include "global.h" |
28 | 29 | ||
29 | MainWindow :: MainWindow( QWidget *p, char *name ) | 30 | MainWindow :: MainWindow( QWidget *p, char *name ) |
30 | :QMainWindow( p, name ) | 31 | :QMainWindow( p, name ) |
@@ -64,8 +65,16 @@ MainWindow :: ~MainWindow() | |||
64 | { | 65 | { |
65 | delete networkPkgWindow; | 66 | delete networkPkgWindow; |
66 | } | 67 | } |
67 | 68 | ||
69 | void MainWindow :: setDocument( const QString &doc ) | ||
70 | { | ||
71 | // Remove path from package | ||
72 | QString package = Utils::getPackageNameFromIpkFilename( doc ); | ||
73 | cout << "Selecting package " << package << endl; | ||
74 | networkPkgWindow->selectLocalPackage( package ); | ||
75 | } | ||
76 | |||
68 | void MainWindow :: displaySettings() | 77 | void MainWindow :: displaySettings() |
69 | { | 78 | { |
70 | SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true ); | 79 | SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true ); |
71 | if ( dlg->showDlg( 0 ) ) | 80 | if ( dlg->showDlg( 0 ) ) |