mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
While testing some of my changes I noticed there are a lot of broken things. So still a lot of work.
50 lines
992 B
C++
50 lines
992 B
C++
#include "choosetableform.h"
|
|
|
|
#include <qvariant.h>
|
|
#include <qimage.h>
|
|
#include <qpixmap.h>
|
|
|
|
/*
|
|
* Constructs a chooseTableForm as a child of 'parent', with the
|
|
* name 'name' and widget flags set to 'f'.
|
|
*
|
|
* The dialog will by default be modeless, unless you set 'modal' to
|
|
* true to construct a modal dialog.
|
|
*/
|
|
chooseTableForm::chooseTableForm(QWidget* parent, Qt::WindowFlags fl)
|
|
: QDialog(parent, fl)
|
|
{
|
|
setupUi(this);
|
|
|
|
}
|
|
|
|
/*
|
|
* Destroys the object and frees any allocated resources
|
|
*/
|
|
chooseTableForm::~chooseTableForm()
|
|
{
|
|
// no need to delete child widgets, Qt does it all for us
|
|
}
|
|
|
|
/*
|
|
* Sets the strings of the subwidgets using the current
|
|
* language.
|
|
*/
|
|
void chooseTableForm::languageChange()
|
|
{
|
|
retranslateUi(this);
|
|
}
|
|
|
|
void chooseTableForm::editPressed()
|
|
{
|
|
option = comboOptions->currentText();
|
|
accept();
|
|
}
|
|
|
|
void chooseTableForm::populateOptions(QStringList entries)
|
|
{
|
|
comboOptions->clear();
|
|
comboOptions->addItems(entries);
|
|
}
|
|
|