Commit c87f6c2f authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq

OSX minor changes

parent 3cab4911
...@@ -122,7 +122,9 @@ Align::Align() ...@@ -122,7 +122,9 @@ Align::Align()
gotoModeButtonGroup->button(currentGotoMode)->setChecked(true); gotoModeButtonGroup->button(currentGotoMode)->setChecked(true);
syncBoxesB->setIcon(QIcon::fromTheme("edit-copy", QIcon(":/icons/breeze/default/edit-copy.svg"))); 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->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 raBox->setDegType(false); //RA box should be HMS-style
......
...@@ -99,9 +99,11 @@ Focus::Focus() ...@@ -99,9 +99,11 @@ Focus::Focus()
frameNum=0; frameNum=0;
showFITSViewerB->setIcon(QIcon::fromTheme("kstars_fitsviewer", QIcon(":/icons/breeze/default/kstars_fitsviewer.svg"))); 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())); connect(showFITSViewerB, SIGNAL(clicked()), this, SLOT(showFITSViewer()));
toggleFullScreenB->setIcon(QIcon::fromTheme("view-fullscreen", QIcon(":/icons/breeze/default/view-fullscreen.svg"))); 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(toggleFullScreenB, SIGNAL(clicked()), this, SLOT(toggleFocusingWidgetFullScreen()));
connect(startFocusB, SIGNAL(clicked()), this, SLOT(start())); connect(startFocusB, SIGNAL(clicked()), this, SLOT(start()));
......
...@@ -80,10 +80,6 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate ) ...@@ -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. //Note: You need to make sure the environment variables for KStars are set correctly to get this running properly.
#ifdef Q_OS_OSX #ifdef Q_OS_OSX
QProcess* klauncher = new QProcess(this); 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"); klauncher->start("kdeinit5");
#endif #endif
......
...@@ -1513,6 +1513,8 @@ void KStars::slotAboutToQuit() ...@@ -1513,6 +1513,8 @@ void KStars::slotAboutToQuit()
quit->waitForFinished(1000); quit->waitForFinished(1000);
quit->start("killall kioslave"); quit->start("killall kioslave");
quit->waitForFinished(1000); quit->waitForFinished(1000);
quit->start("killall kio_http_cache_cleaner");
quit->waitForFinished(1000);
delete quit; delete quit;
#endif #endif
......
...@@ -218,9 +218,13 @@ ObservingList::ObservingList() ...@@ -218,9 +218,13 @@ ObservingList::ObservingList()
this, SLOT( slotOALExport() ) ); this, SLOT( slotOALExport() ) );
//Add icons to Push Buttons //Add icons to Push Buttons
ui->OpenButton->setIcon( QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")) ); 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->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->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->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")) ); ui->MiniButton->setIcon( QIcon::fromTheme("view-restore", QIcon(":/icons/breeze/default/view-restore.svg")) );
noSelection = true; noSelection = true;
showScope = false; showScope = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment