Rewrite EditDialog using Qt Designer

Create a Qt Designer form file for the edit dialog.

Clean up the edit dialog code removing some not working and not used
functionality e.g. for blob editing.
This commit is contained in:
Martin Kleusberg
2013-01-09 16:25:45 +01:00
parent 065cb3682a
commit ab2a4e6479
8 changed files with 434 additions and 533 deletions

View File

@@ -18,7 +18,7 @@
#include "ImportCSVForm.h"
#include "ExportTableCSVForm.h"
#include "PreferencesDialog.h"
#include "EditForm.h"
#include "EditDialog.h"
#include "FindDialog.h"
#include "SQLLogDock.h"
#include "SQLiteSyntaxHighlighter.h"
@@ -26,7 +26,7 @@
MainWindow::MainWindow(QWidget* parent)
: QMainWindow(parent),
ui(new Ui::MainWindow),
editWin(new editForm(this)),
editWin(new EditDialog(this)),
clipboard(QApplication::clipboard()),
findWin(0)
{
@@ -39,9 +39,6 @@ MainWindow::MainWindow(QWidget* parent)
updateRecentFileActions();
}
/*
* Destroys the object and frees any allocated resources
*/
MainWindow::~MainWindow()
{
delete gotoValidator;
@@ -719,7 +716,7 @@ void MainWindow::editText(int row, int col)
QString cv = rt[col+1];//must account for rowid
editWin->loadText(cv , row, col);
editWin ->show();
editWin->show();
}
void MainWindow::doubleClickTable( int row, int col )
@@ -1029,7 +1026,6 @@ void MainWindow::updatePreferences()
db.setDefaultNewData(prefs.defaultnewdata);
defaultlocation= prefs.defaultlocation;
editWin->defaultlocation = defaultlocation;
editWin->setTextFormat(prefs.defaulttext);
}
//******************************************************************