Remove dummy infolabel from MainWindow. No review needed.
authorKaj Wallin <kaj.wallin@ixonos.com>
Thu, 15 Apr 2010 11:57:24 +0000 (14:57 +0300)
committerKaj Wallin <kaj.wallin@ixonos.com>
Thu, 15 Apr 2010 11:57:24 +0000 (14:57 +0300)
src/ui/mainwindow.cpp
src/ui/mainwindow.h

index 91ef5a3..b6c02e1 100644 (file)
@@ -29,17 +29,9 @@ MainWindow::MainWindow(QWidget *parent)
     : QMainWindow(parent)
 {
     qDebug() << __PRETTY_FUNCTION__;
-    QWidget *widget = new QWidget;
-    setCentralWidget(widget);
     createViews();
-    QVBoxLayout *mainLayout = new QVBoxLayout;
-    infoLabel = new QLabel(tr("Click \"view\", to change between views"),this);
-    infoLabel->setAttribute(Qt::WA_TranslucentBackground, true);
-    mainLayout->addWidget(infoLabel);
-    mainLayout->addWidget(situareViews);
-    widget->setLayout(mainLayout);
+    setCentralWidget(situareViews);
     createMenus();
-
     setWindowTitle(tr("View"));
 }
 
@@ -49,7 +41,6 @@ MainWindow::~MainWindow()
     delete toListViewAct;
     delete toMapViewAct;
     delete situareViews;
-    delete infoLabel;
 }
 
 void MainWindow::createMenus()
@@ -92,7 +83,6 @@ void MainWindow::switchView(int nextIndex)
         return;
     }
     situareViews->setCurrentIndex(nextIndex);
-    infoLabel->setText(tr("Current: %1").arg(situareViews->currentIndex()));
     switch (situareViews->currentIndex()) {
         case 0:
             setWindowTitle(tr("List"));
index 7651280..4377605 100644 (file)
@@ -94,15 +94,6 @@ private:
     */
     void switchView(int);
 
-    /**
-    * @brief DUMMY LABEL, REMOVE WHEN BOTH VIEWS ARE COMPLETE
-    *
-    * @var infoLabel
-    * @todo REMOVE THIS
-    */
-    QLabel *infoLabel;
-
-
 public slots:
     /**
     * @brief Public slot, which initiates toListViewAct action to switch view