- Users table model renamed to UsersTableModel- causes linker conflict
with class TableModel in accomodation plugin. - Edit record dialog is now screen centered. - Plugin tabs in application main window are now closable.
This commit is contained in:
@@ -63,3 +63,8 @@ void MainWindow::on_actionOpen_database_triggered()
|
||||
dialog.setWindowTitle(tr("Open Database"));
|
||||
Context::instance().openDb(dialog.getOpenFileName());
|
||||
}
|
||||
|
||||
void MainWindow::on_tabWidget_tabCloseRequested(int index)
|
||||
{
|
||||
ui->tabWidget->removeTab(index);
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ private slots:
|
||||
|
||||
void on_actionOpen_database_triggered();
|
||||
|
||||
void on_tabWidget_tabCloseRequested(int index);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<property name="tabsClosable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@@ -41,7 +44,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>825</width>
|
||||
<height>25</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
||||
Reference in New Issue
Block a user