mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
//******************************************************************
|
||||
|
||||
Reference in New Issue
Block a user