Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index b6b2a2e..e9b5eda 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -5,21 +5,18 @@ | |||
5 | #include <qpopupmenu.h> | 5 | #include <qpopupmenu.h> |
6 | #include <qtoolbar.h> | 6 | #include <qtoolbar.h> |
7 | 7 | ||
8 | #include "metafactory.h" | 8 | #include "metafactory.h" |
9 | #include "mainwindow.h" | 9 | #include "mainwindow.h" |
10 | 10 | ||
11 | MainWindow::MainWindow() | 11 | MainWindow::MainWindow() { |
12 | { | ||
13 | qWarning("c'tor"); | ||
14 | m_factory = new MetaFactory(); | 12 | m_factory = new MetaFactory(); |
15 | m_sessions.setAutoDelete( TRUE ); | 13 | m_sessions.setAutoDelete( TRUE ); |
16 | m_curSession = 0l; | 14 | m_curSession = -1; |
17 | 15 | ||
18 | initUI(); | 16 | initUI(); |
19 | |||
20 | } | 17 | } |
21 | void MainWindow::initUI() { | 18 | void MainWindow::initUI() { |
22 | setToolBarsMovable( FALSE ); | 19 | setToolBarsMovable( FALSE ); |
23 | 20 | ||
24 | m_tool = new QToolBar( this ); | 21 | m_tool = new QToolBar( this ); |
25 | m_tool->setHorizontalStretchable( TRUE ); | 22 | m_tool->setHorizontalStretchable( TRUE ); |
@@ -48,15 +45,18 @@ void MainWindow::initUI() { | |||
48 | m_bar->insertItem( tr("Connection"), m_console ); | 45 | m_bar->insertItem( tr("Connection"), m_console ); |
49 | 46 | ||
50 | } | 47 | } |
51 | MainWindow::~MainWindow() { | 48 | MainWindow::~MainWindow() { |
52 | delete m_factory; | 49 | delete m_factory; |
53 | } | 50 | } |
51 | |||
54 | MetaFactory* MainWindow::factory() { | 52 | MetaFactory* MainWindow::factory() { |
55 | return m_factory; | 53 | return m_factory; |
56 | } | 54 | } |
55 | |||
57 | Session* MainWindow::currentSession() { | 56 | Session* MainWindow::currentSession() { |
58 | return m_curSession; | 57 | return m_curSession; |
59 | } | 58 | } |
59 | |||
60 | QList<Session> MainWindow::sessions() { | 60 | QList<Session> MainWindow::sessions() { |
61 | return m_sessions; | 61 | return m_sessions; |
62 | } | 62 | } |