Add website logo placeholder and its settings
This commit is contained in:
1 parent
440ed63975
commit
347e0c00c7
8 files changed
+65
-38
No files matched your search
@@ -169,6 +169,8 @@ MainWindow::MainWindow(const QString &filePath, EditorSettings &settings, QWidge
|
||||
if (!m_filePath.isEmpty())
|
||||
loadFile(m_filePath);
|
||||
|
||||
updateVisibilities();
|
||||
|
||||
restoreGeometry(m_settings.mainWindowGeometry());
|
||||
restoreState(m_settings.mainWindowState());
|
||||
}
|
||||
@@ -589,7 +591,10 @@ void MainWindow::preferences()
|
||||
{
|
||||
PreferencesDialog dialog{m_settings, this};
|
||||
if (dialog.exec() == QDialog::Accepted)
|
||||
{
|
||||
dialog.save(m_settings);
|
||||
updateVisibilities();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::create()
|
||||
@@ -939,6 +944,11 @@ void MainWindow::updateTitle()
|
||||
.arg(m_unsavedChanges ? tr("*") : QString{}));
|
||||
}
|
||||
|
||||
void MainWindow::updateVisibilities()
|
||||
{
|
||||
m_ui->logo->setHidden(m_settings.hideWebsiteImage());
|
||||
}
|
||||
|
||||
QMdiSubWindow *MainWindow::addSubWindow(QDialog *dialog)
|
||||
{
|
||||
auto subwindow = m_ui->mdiArea->addSubWindow(dialog);
|
||||
|
||||
Reference in new issue
Block a user