summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Lancaster <rlancaste@gmail.com>2016-10-25 06:19:20 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-25 06:19:20 (GMT)
commitf9846aaebea554b4d8a2da68b20037048d128d82 (patch)
treed74cccad01781ce472a4f20db4e036dfaf379839
parentde60e6f54ddc1f3b96344f468c583f0325395be0 (diff)
Fix buttons in OSX
-rw-r--r--kstars/ekos/capture/capture.cpp13
-rw-r--r--kstars/ekos/ekosmanager.cpp7
-rw-r--r--kstars/ekos/scheduler/scheduler.cpp16
3 files changed, 35 insertions, 1 deletions
diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp
index 072df2b..f85cb6b 100644
--- a/kstars/ekos/capture/capture.cpp
+++ b/kstars/ekos/capture/capture.cpp
@@ -123,7 +123,9 @@ Capture::Capture()
connect(pauseB, SIGNAL(clicked()), this, SLOT(pause()));
startB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg") ));
+ startB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
pauseB->setIcon(QIcon::fromTheme("media-playback-pause", QIcon(":/icons/breeze/default/media-playback-pause.svg") ));
+ pauseB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
connect(binXIN, SIGNAL(valueChanged(int)), binYIN, SLOT(setValue(int)));
@@ -157,16 +159,27 @@ Capture::Capture()
connect(calibrationB, SIGNAL(clicked()), this, SLOT(openCalibrationDialog()));
addToQueueB->setIcon(QIcon::fromTheme("list-add", QIcon(":/icons/breeze/default/list-add.svg") ));
+ addToQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
removeFromQueueB->setIcon(QIcon::fromTheme("list-remove", QIcon(":/icons/breeze/default/list-remove.svg") ));
+ removeFromQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueUpB->setIcon(QIcon::fromTheme("go-up", QIcon(":/icons/breeze/default/go-up.svg") ));
+ queueUpB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueDownB->setIcon(QIcon::fromTheme("go-down", QIcon(":/icons/breeze/default/go-down.svg") ));
+ queueDownB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectFITSDirB->setIcon(QIcon::fromTheme("document-open-folder", QIcon(":/icons/breeze/default/document-open-folder.svg") ));
+ selectFITSDirB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueLoadB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg") ));
+ queueLoadB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveB->setIcon(QIcon::fromTheme("document-save", QIcon(":/icons/breeze/default/document-save.svg") ));
+ queueSaveB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveAsB->setIcon(QIcon::fromTheme("document-save-as", QIcon(":/icons/breeze/default/document-save-as.svg") ));
+ queueSaveAsB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
resetB->setIcon(QIcon::fromTheme("system-reboot", QIcon(":/icons/breeze/default/system-reboot.svg") ));
+ resetB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
resetFrameB->setIcon(QIcon::fromTheme("view-refresh", QIcon(":/icons/breeze/default/view-refresh.svg") ));
+ resetFrameB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
calibrationB->setIcon(QIcon::fromTheme("run-build", QIcon(":/icons/breeze/default/run-build.svg") ));
+ calibrationB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
addToQueueB->setToolTip(i18n("Add job to sequence queue"));
removeFromQueueB->setToolTip(i18n("Remove job from sequence queue"));
diff --git a/kstars/ekos/ekosmanager.cpp b/kstars/ekos/ekosmanager.cpp
index 467205c..b909d7c 100644
--- a/kstars/ekos/ekosmanager.cpp
+++ b/kstars/ekos/ekosmanager.cpp
@@ -128,10 +128,17 @@ EkosManager::EkosManager(QWidget *parent) : QDialog(parent)
connect(deleteProfileB, SIGNAL(clicked()), this, SLOT(deleteProfile()));
connect(profileCombo, SIGNAL(activated(QString)), this, SLOT(saveDefaultProfile(QString)));
+ addProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
+ editProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
+ deleteProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
+
// Set Profile icons
addProfileB->setIcon(QIcon::fromTheme("list-add", QIcon(":/icons/breeze/default/list-add.svg")));
+ addProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
editProfileB->setIcon(QIcon::fromTheme("document-edit", QIcon(":/icons/breeze/default/document-edit.svg")));
+ editProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
deleteProfileB->setIcon(QIcon::fromTheme("list-remove", QIcon(":/icons/breeze/default/list-remove.svg")));
+ deleteProfileB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
// Load all drivers
loadDrivers();
diff --git a/kstars/ekos/scheduler/scheduler.cpp b/kstars/ekos/scheduler/scheduler.cpp
index 9de7986..eaf0acc 100644
--- a/kstars/ekos/scheduler/scheduler.cpp
+++ b/kstars/ekos/scheduler/scheduler.cpp
@@ -145,27 +145,39 @@ Scheduler::Scheduler()
raBox->setDegType(false); //RA box should be HMS-style
-
addToQueueB->setIcon(QIcon::fromTheme("list-add", QIcon(":/icons/breeze/default/list-add.svg")));
addToQueueB->setToolTip(i18n("Add observation job to list."));
+ addToQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
removeFromQueueB->setIcon(QIcon::fromTheme("list-remove", QIcon(":/icons/breeze/default/list-remove.svg")));
removeFromQueueB->setToolTip(i18n("Remove observation job from list."));
+ removeFromQueueB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
evaluateOnlyB->setIcon(QIcon::fromTheme("tools-wizard", QIcon(":/icons/breeze/default/tools-wizard.svg")));
+ evaluateOnlyB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
mosaicB->setIcon(QIcon::fromTheme("zoom-draw", QIcon(":/icons/breeze/default/zoom-draw.svg")));
+ mosaicB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveAsB->setIcon(QIcon::fromTheme("document-save-as", QIcon(":/icons/breeze/default/document-save-as.svg")));
+ queueSaveAsB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueSaveB->setIcon(QIcon::fromTheme("document-save", QIcon(":/icons/breeze/default/document-save.svg")));
+ queueSaveB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
queueLoadB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
+ queueLoadB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
loadSequenceB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
+ loadSequenceB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectStartupScriptB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
+ selectStartupScriptB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectShutdownScriptB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
+ selectShutdownScriptB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
selectFITSB->setIcon(QIcon::fromTheme("document-open", QIcon(":/icons/breeze/default/document-open.svg")));
+ selectFITSB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
startupB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg")));
+ startupB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
shutdownB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg")));
+ shutdownB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
connect(startupB, SIGNAL(clicked()), this, SLOT(runStartupProcedure()));
connect(shutdownB, SIGNAL(clicked()), this, SLOT(runShutdownProcedure()));
@@ -184,7 +196,9 @@ Scheduler::Scheduler()
connect(queueTable, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(resetJobState(QModelIndex)));
startB->setIcon(QIcon::fromTheme("media-playback-start", QIcon(":/icons/breeze/default/media-playback-start.svg")));
+ startB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
pauseB->setIcon(QIcon::fromTheme("media-playback-pause", QIcon(":/icons/breeze/default/media-playback-pause.svg")));
+ pauseB->setAttribute(Qt::WA_LayoutUsesWidgetRect);
connect(startB,SIGNAL(clicked()),this,SLOT(toggleScheduler()));
connect(pauseB,SIGNAL(clicked()),this,SLOT(pause()));