mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 01:22:25 +02:00
Dialog position / toggle
This commit is contained in:
parent
3e1c857a2e
commit
57b4148867
3 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
QPlainTextEdit {
|
||||
font-family: Inconsolata, Lucida Console, Andale Mono, Monaco;
|
||||
font-family: Inconsolata, Lucida Console, Andale Mono, Monaco;
|
||||
font-size: 16px;
|
||||
padding-left: 28px;
|
||||
color: #333333;
|
||||
|
|
|
@ -1032,10 +1032,10 @@ void Menu::showLogDialog() {
|
|||
if (! _logDialog) {
|
||||
_logDialog = new LogDialog(Application::getInstance()->getGLWidget());
|
||||
connect(_logDialog, SIGNAL(closed()), SLOT(logDialogClosed()));
|
||||
|
||||
_logDialog->show();
|
||||
} else {
|
||||
_logDialog->close();
|
||||
}
|
||||
_logDialog->raise();
|
||||
}
|
||||
|
||||
void Menu::logDialogClosed() {
|
||||
|
|
|
@ -21,7 +21,7 @@ int cursorMeta = qRegisterMetaType<QTextCursor>("QTextCursor");
|
|||
int blockMeta = qRegisterMetaType<QTextBlock>("QTextBlock");
|
||||
|
||||
LogDialog::LogDialog(QWidget* parent) :
|
||||
QDialog(parent, Qt::Window | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint) {
|
||||
QDialog(parent, Qt::Dialog | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint) {
|
||||
|
||||
setWindowTitle("Log");
|
||||
|
||||
|
|
Loading…
Reference in a new issue