New menu item "New window".
--HG-- branch : feature
This commit is contained in:
parent
9acd880dd6
commit
4b62d4a20b
|
@ -377,6 +377,9 @@ void TMainWindow::FileSaveAs()
|
|||
void TMainWindow::AboutToShowWindowMenu()
|
||||
{
|
||||
ui->menuWindow->clear();
|
||||
ui->menuWindow->addAction(tr("&New Window"), this, SLOT(NewWindow()));
|
||||
ui->menuWindow->addSeparator();
|
||||
|
||||
QList<TMainWindow*> windows = qApp->MainWindows();
|
||||
for (int i = 0; i < windows.count(); ++i)
|
||||
{
|
||||
|
@ -1100,6 +1103,13 @@ void TMainWindow::SaveMFullName()
|
|||
ui->tableWidget->blockSignals(false);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void TMainWindow::NewWindow()
|
||||
{
|
||||
qApp->NewMainWindow();
|
||||
qApp->MainWindow()->activateWindow();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void TMainWindow::SetupMenu()
|
||||
{
|
||||
|
|
|
@ -102,6 +102,8 @@ private slots:
|
|||
void SaveMDescription();
|
||||
void SaveMFullName();
|
||||
|
||||
void NewWindow();
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(TMainWindow)
|
||||
Ui::TMainWindow *ui;
|
||||
|
|
Loading…
Reference in New Issue
Block a user