Added an "Event" tab with a BiddingRoundControl class in it. No connections of signals and slots yet.
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include "model/generalsortfiltermodel.h"
|
||||
#include "model/metadata.h"
|
||||
#include "model/tablemodel.h"
|
||||
#include "widgets/biddingroundcontrol.h"
|
||||
#include "widgets/comboboxdelegate.h"
|
||||
#include "widgets/spinboxdelegate.h"
|
||||
|
||||
@ -70,6 +71,8 @@ MainWindow::MainWindow(QWidget* parent)
|
||||
|
||||
onSelectionChanged(QItemSelection(), QItemSelection());
|
||||
onCurrentChanged(QModelIndex(), QModelIndex());
|
||||
|
||||
setupEventTab();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() { delete ui; }
|
||||
@ -176,11 +179,6 @@ void MainWindow::on_actionCheck_for_update_triggered() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_pushButton_clicked() {
|
||||
const QString prefix("Backend provided by: ");
|
||||
ui->label->setText(prefix + m_core->toString());
|
||||
}
|
||||
|
||||
void MainWindow::openNewItemDialog() {
|
||||
showStatusMessage(tr("Invoked 'Edit|New Item'"));
|
||||
m_newItemDialog->show();
|
||||
@ -569,3 +567,13 @@ void MainWindow::createGuiDialogs() {
|
||||
m_editItemDialog = make_unique<EditItemDialog>(ui->tableView, this);
|
||||
m_editItemDialog->createContent();
|
||||
}
|
||||
|
||||
void MainWindow::setupEventTab() {
|
||||
QWidget* containerWidget = new QWidget();
|
||||
QVBoxLayout* containerLayout = new QVBoxLayout(containerWidget);
|
||||
m_biddingRoundControl = make_unique<BiddingRoundControl>();
|
||||
containerLayout->addWidget(m_biddingRoundControl.get());
|
||||
|
||||
|
||||
ui->tabWidget->insertTab(0, containerWidget, "Event (&1)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user