Merge pull request #980 from manongjohn/fix_popups_behind_other_popups
Fix popups appearing behind other popups
This commit is contained in:
commit
71a0dd7424
12 changed files with 40 additions and 10 deletions
|
@ -495,6 +495,7 @@ void FileBrowser::getRevisionHistory() {
|
||||||
|
|
||||||
timelineDialog->show();
|
timelineDialog->show();
|
||||||
timelineDialog->raise();
|
timelineDialog->raise();
|
||||||
|
timelineDialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -573,6 +574,7 @@ void FileBrowser::showLockInformation() {
|
||||||
SVNLockInfoDialog *dialog = new SVNLockInfoDialog(this, status);
|
SVNLockInfoDialog *dialog = new SVNLockInfoDialog(this, status);
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
@ -532,6 +532,7 @@ void FileSelection::separateFilesByColors() {
|
||||||
popup->setFiles(files);
|
popup->setFiles(files);
|
||||||
popup->show();
|
popup->show();
|
||||||
popup->raise();
|
popup->raise();
|
||||||
|
popup->activateWindow();
|
||||||
// popup->exec();
|
// popup->exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -909,8 +909,9 @@ FlipBook *FlipBookPool::pop() {
|
||||||
|
|
||||||
// The panel need to be added to currentRoom's layout control.
|
// The panel need to be added to currentRoom's layout control.
|
||||||
currentRoom->addDockWidget(panel);
|
currentRoom->addDockWidget(panel);
|
||||||
panel->raise();
|
|
||||||
panel->show();
|
panel->show();
|
||||||
|
panel->raise();
|
||||||
|
panel->activateWindow();
|
||||||
|
|
||||||
return flipbook;
|
return flipbook;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,7 @@ TPanel *OpenFloatingPanel::getOrOpenFloatingPanel(
|
||||||
currentRoom->addDockWidget(panel);
|
currentRoom->addDockWidget(panel);
|
||||||
panel->show();
|
panel->show();
|
||||||
panel->raise();
|
panel->raise();
|
||||||
|
panel->activateWindow();
|
||||||
return panel;
|
return panel;
|
||||||
} else
|
} else
|
||||||
lastFloatingPos = panel->pos();
|
lastFloatingPos = panel->pos();
|
||||||
|
@ -141,6 +142,7 @@ TPanel *OpenFloatingPanel::getOrOpenFloatingPanel(
|
||||||
panel->setFloating(true);
|
panel->setFloating(true);
|
||||||
panel->show();
|
panel->show();
|
||||||
panel->raise();
|
panel->raise();
|
||||||
|
panel->activateWindow();
|
||||||
if (!lastFloatingPos.isNull())
|
if (!lastFloatingPos.isNull())
|
||||||
panel->move(QPoint(lastFloatingPos.x() + 30, lastFloatingPos.y() + 30));
|
panel->move(QPoint(lastFloatingPos.x() + 30, lastFloatingPos.y() + 30));
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include "cleanupsettingspopup.h"
|
#include "cleanupsettingspopup.h"
|
||||||
#include "filebrowsermodel.h"
|
#include "filebrowsermodel.h"
|
||||||
#include "expressionreferencemanager.h"
|
#include "expressionreferencemanager.h"
|
||||||
|
#include "startuppopup.h"
|
||||||
|
|
||||||
// TnzTools includes
|
// TnzTools includes
|
||||||
#include "tools/tool.h"
|
#include "tools/tool.h"
|
||||||
|
@ -812,6 +813,13 @@ int main(int argc, char *argv[]) {
|
||||||
// Show floating panels only after the main window has been shown
|
// Show floating panels only after the main window has been shown
|
||||||
w.startupFloatingPanels();
|
w.startupFloatingPanels();
|
||||||
|
|
||||||
|
if (Preferences::instance()->isStartupPopupEnabled()) {
|
||||||
|
StartupPopup *startupPopup = new StartupPopup();
|
||||||
|
startupPopup->show();
|
||||||
|
startupPopup->raise();
|
||||||
|
startupPopup->activateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
CommandManager::instance()->execute(T_Hand);
|
CommandManager::instance()->execute(T_Hand);
|
||||||
if (!loadFilePath.isEmpty()) {
|
if (!loadFilePath.isEmpty()) {
|
||||||
splash.showMessage(
|
splash.showMessage(
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
#include "iocommand.h"
|
#include "iocommand.h"
|
||||||
#include "tapp.h"
|
#include "tapp.h"
|
||||||
#include "viewerpane.h"
|
#include "viewerpane.h"
|
||||||
#include "startuppopup.h"
|
|
||||||
#include "tooloptionsshortcutinvoker.h"
|
#include "tooloptionsshortcutinvoker.h"
|
||||||
#include "statusbar.h"
|
#include "statusbar.h"
|
||||||
#include "aboutpopup.h"
|
#include "aboutpopup.h"
|
||||||
|
@ -1308,12 +1307,6 @@ void MainWindow::onMenuCheckboxChanged() {
|
||||||
void MainWindow::showEvent(QShowEvent *event) {
|
void MainWindow::showEvent(QShowEvent *event) {
|
||||||
getCurrentRoom()->layout()->setEnabled(true); // See main function in
|
getCurrentRoom()->layout()->setEnabled(true); // See main function in
|
||||||
// main.cpp
|
// main.cpp
|
||||||
if (Preferences::instance()->isStartupPopupEnabled() &&
|
|
||||||
!m_startupPopupShown) {
|
|
||||||
StartupPopup *startupPopup = new StartupPopup();
|
|
||||||
startupPopup->show();
|
|
||||||
m_startupPopupShown = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
extern const char *applicationName;
|
extern const char *applicationName;
|
||||||
extern const char *applicationVersion;
|
extern const char *applicationVersion;
|
||||||
|
|
|
@ -60,7 +60,6 @@ class MainWindow final : public QMainWindow {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
bool m_saveSettingsOnQuit;
|
bool m_saveSettingsOnQuit;
|
||||||
bool m_startupPopupShown = false;
|
|
||||||
bool m_shownOnce = false;
|
bool m_shownOnce = false;
|
||||||
int m_oldRoomIndex;
|
int m_oldRoomIndex;
|
||||||
QString m_currentRoomsChoice;
|
QString m_currentRoomsChoice;
|
||||||
|
|
|
@ -1322,8 +1322,9 @@ public:
|
||||||
static MeshifyPopup *thePopup = 0;
|
static MeshifyPopup *thePopup = 0;
|
||||||
if (!thePopup) thePopup = new MeshifyPopup;
|
if (!thePopup) thePopup = new MeshifyPopup;
|
||||||
|
|
||||||
thePopup->raise();
|
|
||||||
thePopup->show();
|
thePopup->show();
|
||||||
|
thePopup->raise();
|
||||||
|
thePopup->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
} meshifyCommand;
|
} meshifyCommand;
|
||||||
|
|
|
@ -172,6 +172,7 @@ public:
|
||||||
pane->getPanelType() == "Message") {
|
pane->getPanelType() == "Message") {
|
||||||
pane->show();
|
pane->show();
|
||||||
pane->raise();
|
pane->raise();
|
||||||
|
pane->activateWindow();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -180,6 +181,7 @@ public:
|
||||||
pane->setFloating(true);
|
pane->setFloating(true);
|
||||||
pane->show();
|
pane->show();
|
||||||
pane->raise();
|
pane->raise();
|
||||||
|
pane->activateWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} openFloatingLogPanelCommand;
|
} openFloatingLogPanelCommand;
|
||||||
|
|
|
@ -546,6 +546,7 @@ void SceneSettingsPopup::onEditCellMarksButtonClicked() {
|
||||||
if (!m_cellMarksPopup) m_cellMarksPopup = new CellMarksPopup(this);
|
if (!m_cellMarksPopup) m_cellMarksPopup = new CellMarksPopup(this);
|
||||||
m_cellMarksPopup->show();
|
m_cellMarksPopup->show();
|
||||||
m_cellMarksPopup->raise();
|
m_cellMarksPopup->raise();
|
||||||
|
m_cellMarksPopup->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
|
@ -127,6 +127,7 @@ public:
|
||||||
pane->getPanelType() == "Test") {
|
pane->getPanelType() == "Test") {
|
||||||
pane->show();
|
pane->show();
|
||||||
pane->raise();
|
pane->raise();
|
||||||
|
pane->activateWindow();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,6 +137,7 @@ public:
|
||||||
pane->setFloating(true);
|
pane->setFloating(true);
|
||||||
pane->show();
|
pane->show();
|
||||||
pane->raise();
|
pane->raise();
|
||||||
|
pane->activateWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} openFloatingTestPanelCommand;
|
} openFloatingTestPanelCommand;
|
||||||
|
|
|
@ -652,6 +652,7 @@ void VersionControl::commit(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -665,6 +666,7 @@ void VersionControl::revert(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -680,6 +682,7 @@ void VersionControl::update(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -693,6 +696,7 @@ void VersionControl::updateAndLock(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -705,6 +709,7 @@ void VersionControl::lock(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -718,6 +723,7 @@ void VersionControl::unlock(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -730,6 +736,7 @@ void VersionControl::lockFrameRange(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -742,6 +749,7 @@ void VersionControl::lockFrameRange(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -755,6 +763,7 @@ void VersionControl::unlockFrameRange(QWidget *parent,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -768,6 +777,7 @@ void VersionControl::unlockFrameRange(QWidget *parent,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -779,6 +789,7 @@ void VersionControl::showFrameRangeLockInfo(QWidget *parent,
|
||||||
new SVNFrameRangeLockInfoDialog(parent, workingDir, file);
|
new SVNFrameRangeLockInfoDialog(parent, workingDir, file);
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -790,6 +801,7 @@ void VersionControl::showFrameRangeLockInfo(QWidget *parent,
|
||||||
new SVNMultiFrameRangeLockInfoDialog(parent, workingDir, files);
|
new SVNMultiFrameRangeLockInfoDialog(parent, workingDir, files);
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -803,6 +815,7 @@ void VersionControl::commitFrameRange(QWidget *parent,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -817,6 +830,7 @@ void VersionControl::revertFrameRange(QWidget *parent,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -830,6 +844,7 @@ void VersionControl::deleteFiles(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -842,6 +857,7 @@ void VersionControl::deleteFolder(QWidget *parent, const QString &workingDir,
|
||||||
SIGNAL(commandDone(const QStringList &)));
|
SIGNAL(commandDone(const QStringList &)));
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -850,6 +866,7 @@ void VersionControl::cleanupFolder(QWidget *parent, const QString &workingDir) {
|
||||||
SVNCleanupDialog *dialog = new SVNCleanupDialog(parent, workingDir);
|
SVNCleanupDialog *dialog = new SVNCleanupDialog(parent, workingDir);
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -858,6 +875,7 @@ void VersionControl::purgeFolder(QWidget *parent, const QString &workingDir) {
|
||||||
SVNPurgeDialog *dialog = new SVNPurgeDialog(parent, workingDir);
|
SVNPurgeDialog *dialog = new SVNPurgeDialog(parent, workingDir);
|
||||||
dialog->show();
|
dialog->show();
|
||||||
dialog->raise();
|
dialog->raise();
|
||||||
|
dialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue