From c87f6c2f0b3baa6e6e26d7ac116e1e01c8fd7ffb Mon Sep 17 00:00:00 2001 From: Robert Lancaster Date: Thu, 19 Jan 2017 08:53:20 +0300 Subject: [PATCH] OSX minor changes --- kstars/ekos/align/align.cpp | 2 ++ kstars/ekos/focus/focus.cpp | 2 ++ kstars/kstars.cpp | 4 ---- kstars/kstarsactions.cpp | 2 ++ kstars/tools/observinglist.cpp | 4 ++++ 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/kstars/ekos/align/align.cpp b/kstars/ekos/align/align.cpp index 4e5391b79..9a65ad3b2 100644 --- a/kstars/ekos/align/align.cpp +++ b/kstars/ekos/align/align.cpp @@ -122,7 +122,9 @@ Align::Align() gotoModeButtonGroup->button(currentGotoMode)->setChecked(true); syncBoxesB->setIcon(QIcon::fromTheme("edit-copy", QIcon(":/icons/breeze/default/edit-copy.svg"))); + syncBoxesB->setAttribute(Qt::WA_LayoutUsesWidgetRect); clearBoxesB->setIcon(QIcon::fromTheme("edit-clear", QIcon(":/icons/breeze/default/edit-clear.svg"))); + clearBoxesB->setAttribute(Qt::WA_LayoutUsesWidgetRect); raBox->setDegType(false); //RA box should be HMS-style diff --git a/kstars/ekos/focus/focus.cpp b/kstars/ekos/focus/focus.cpp index 63d500d9c..340ac65a0 100644 --- a/kstars/ekos/focus/focus.cpp +++ b/kstars/ekos/focus/focus.cpp @@ -99,9 +99,11 @@ Focus::Focus() frameNum=0; showFITSViewerB->setIcon(QIcon::fromTheme("kstars_fitsviewer", QIcon(":/icons/breeze/default/kstars_fitsviewer.svg"))); + showFITSViewerB->setAttribute(Qt::WA_LayoutUsesWidgetRect); connect(showFITSViewerB, SIGNAL(clicked()), this, SLOT(showFITSViewer())); toggleFullScreenB->setIcon(QIcon::fromTheme("view-fullscreen", QIcon(":/icons/breeze/default/view-fullscreen.svg"))); + toggleFullScreenB->setAttribute(Qt::WA_LayoutUsesWidgetRect); connect(toggleFullScreenB, SIGNAL(clicked()), this, SLOT(toggleFocusingWidgetFullScreen())); connect(startFocusB, SIGNAL(clicked()), this, SLOT(start())); diff --git a/kstars/kstars.cpp b/kstars/kstars.cpp index 41dd9934c..fef97d35f 100644 --- a/kstars/kstars.cpp +++ b/kstars/kstars.cpp @@ -80,10 +80,6 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate ) //Note: You need to make sure the environment variables for KStars are set correctly to get this running properly. #ifdef Q_OS_OSX QProcess* klauncher = new QProcess(this); - // QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); - // QString stringPath = QCoreApplication::applicationDirPath(); - // env.insert("QT_PLUGIN_PATH", stringPath + "/../plugins"); - // klauncher->setProcessEnvironment(env); klauncher->start("kdeinit5"); #endif diff --git a/kstars/kstarsactions.cpp b/kstars/kstarsactions.cpp index d5ff99ea5..1ca9ede6f 100644 --- a/kstars/kstarsactions.cpp +++ b/kstars/kstarsactions.cpp @@ -1513,6 +1513,8 @@ void KStars::slotAboutToQuit() quit->waitForFinished(1000); quit->start("killall kioslave"); quit->waitForFinished(1000); + quit->start("killall kio_http_cache_cleaner"); + quit->waitForFinished(1000); delete quit; #endif diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp index 3820f8fe4..a0fb15cde 100644 --- a/kstars/tools/observinglist.cpp +++ b/kstars/tools/observinglist.cpp @@ -218,9 +218,13 @@ ObservingList::ObservingList() this, SLOT( slotOALExport() ) ); //Add icons to Push Buttons ui->OpenButton->setIcon( QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")) ); + ui->OpenButton ->setAttribute(Qt::WA_LayoutUsesWidgetRect); ui->SaveButton->setIcon( QIcon::fromTheme("document-save", QIcon(":/icons/breeze/default/document-save.svg")) ); + ui->SaveButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); ui->SaveAsButton->setIcon( QIcon::fromTheme("document-save-as", QIcon(":/icons/breeze/default/document-save-as.svg")) ); + ui->SaveAsButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); ui->WizardButton->setIcon( QIcon::fromTheme("tools-wizard", QIcon(":/icons/breeze/default/tools-wizard.svg")) ); + ui->WizardButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); ui->MiniButton->setIcon( QIcon::fromTheme("view-restore", QIcon(":/icons/breeze/default/view-restore.svg")) ); noSelection = true; showScope = false; -- GitLab