From 454ca8aa98ad71cad1f48f3cdc8399d1f8ca0778 Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Sat, 3 Mar 2012 18:32:11 +0100 Subject: [PATCH] remove useless togglelogwindow function --- src/mainwindow.cpp | 12 ------------ src/mainwindow.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b4225572..5a59c6d9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -569,7 +569,6 @@ void MainWindow::setupUi() QObject::connect(helpAboutAction, SIGNAL(activated()), this, SLOT(helpAbout())); QObject::connect(dataTable, SIGNAL(cellDoubleClicked(int,int)), this, SLOT(doubleClickTable(int,int))); QObject::connect(mainTab, SIGNAL(currentChanged(int)), this, SLOT(mainTabSelected(int))); - QObject::connect(sqlLogAction, SIGNAL(toggled(bool)), this, SLOT(toggleLogWindow(bool))); QObject::connect(executeQueryButton, SIGNAL(clicked()), this, SLOT(executeQuery())); QObject::connect(fileImportCSVAction, SIGNAL(activated()), this, SLOT(importTableFromCSV())); QObject::connect(fileExportCSVAction, SIGNAL(activated()), this, SLOT(exportTableToCSV())); @@ -1710,17 +1709,6 @@ void MainWindow::mainTabSelected(int tabindex) } } - -void MainWindow::toggleLogWindow( bool enable ) -{ - if (enable){ - logWin->show(); - } else { - logWin->hide(); - } -} - - void MainWindow::importTableFromCSV() { if (!db.isOpen()){ diff --git a/src/mainwindow.h b/src/mainwindow.h index a579d0d2..487e1fb0 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -201,7 +201,6 @@ public slots: virtual void editText( int row, int col ); virtual void doubleClickTable( int row, int col ); virtual void executeQuery(); - virtual void toggleLogWindow( bool enable ); virtual void importTableFromCSV(); virtual void exportTableToCSV(); virtual void dbState( bool dirty );