summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Lancaster <rlancaste@gmail.com>2016-10-24 21:15:26 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-24 21:15:26 (GMT)
commitde60e6f54ddc1f3b96344f468c583f0325395be0 (patch)
treeeabbb6af7b2cc300fb1a29ee40fc63aa6bdc200a
parent684cb8290cc3b59938654d53116ea001914ffb7f (diff)
Make Windows as tools on OSX to workaround some Qt bug where they get behind main window
-rw-r--r--kstars/auxiliary/kswizard.cpp4
-rw-r--r--kstars/auxiliary/thumbnaileditor.cpp3
-rw-r--r--kstars/auxiliary/thumbnailpicker.cpp3
-rw-r--r--kstars/dialogs/addcatdialog.cpp3
-rw-r--r--kstars/dialogs/addlinkdialog.cpp3
-rw-r--r--kstars/dialogs/detaildialog.cpp3
-rw-r--r--kstars/dialogs/exportimagedialog.cpp3
-rw-r--r--kstars/dialogs/finddialog.cpp3
-rw-r--r--kstars/dialogs/focusdialog.cpp3
-rw-r--r--kstars/dialogs/fovdialog.cpp3
-rw-r--r--kstars/dialogs/locationdialog.cpp3
-rw-r--r--kstars/dialogs/timedialog.cpp3
-rw-r--r--kstars/ekos/ekosmanager.cpp6
-rw-r--r--kstars/ekos/guide/internalguide/rcalibration.cpp3
-rw-r--r--kstars/ekos/profileeditor.cpp3
-rw-r--r--kstars/fitsviewer/fitsviewer.cpp7
-rw-r--r--kstars/indi/drivermanager.cpp3
-rw-r--r--kstars/indi/guimanager.cpp7
-rw-r--r--kstars/indi/indidevice.cpp5
-rw-r--r--kstars/indi/indidriver.cpp3
-rw-r--r--kstars/kstars.cpp2
-rw-r--r--kstars/kstarsactions.cpp3
-rw-r--r--kstars/oal/execute.cpp3
-rw-r--r--kstars/printing/foveditordialog.cpp3
-rw-r--r--kstars/printing/printingwizard.cpp3
-rw-r--r--kstars/tools/adddeepskyobject.cpp3
-rw-r--r--kstars/tools/altvstime.cpp4
-rw-r--r--kstars/tools/astrocalc.cpp4
-rw-r--r--kstars/tools/exporteyepieceview.cpp4
-rw-r--r--kstars/tools/eyepiecefield.cpp4
-rw-r--r--kstars/tools/flagmanager.cpp3
-rw-r--r--kstars/tools/horizonmanager.cpp3
-rw-r--r--kstars/tools/jmoontool.cpp4
-rw-r--r--kstars/tools/moonphasetool.cpp3
-rw-r--r--kstars/tools/observinglist.cpp3
-rw-r--r--kstars/tools/obslistwizard.cpp3
-rw-r--r--kstars/tools/planetviewer.cpp3
-rw-r--r--kstars/tools/scriptbuilder.cpp9
-rw-r--r--kstars/tools/skycalendar.cpp4
-rw-r--r--kstars/tools/whatsinteresting/wiview.cpp2
-rw-r--r--kstars/tools/wutdialog.cpp3
41 files changed, 147 insertions, 0 deletions
diff --git a/kstars/auxiliary/kswizard.cpp b/kstars/auxiliary/kswizard.cpp
index f2b9525..4a79059 100644
--- a/kstars/auxiliary/kswizard.cpp
+++ b/kstars/auxiliary/kswizard.cpp
@@ -53,6 +53,10 @@ WizDownloadUI::WizDownloadUI( QWidget *parent ) : QFrame( parent ) {
KSWizard::KSWizard( QWidget *parent ) :
QDialog( parent )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
+
wizardStack = new QStackedWidget( this );
setWindowTitle( i18n("Setup Wizard") );
diff --git a/kstars/auxiliary/thumbnaileditor.cpp b/kstars/auxiliary/thumbnaileditor.cpp
index 7931d59..6ba7dcb 100644
--- a/kstars/auxiliary/thumbnaileditor.cpp
+++ b/kstars/auxiliary/thumbnaileditor.cpp
@@ -37,6 +37,9 @@ ThumbnailEditorUI::ThumbnailEditorUI( QWidget *parent ) : QFrame( parent ) {
ThumbnailEditor::ThumbnailEditor( ThumbnailPicker *_tp, double _w, double _h )
: QDialog( _tp ), tp( _tp )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ui = new ThumbnailEditorUI( this );
w = _w;
h = _h;
diff --git a/kstars/auxiliary/thumbnailpicker.cpp b/kstars/auxiliary/thumbnailpicker.cpp
index 25a61be..02dc205 100644
--- a/kstars/auxiliary/thumbnailpicker.cpp
+++ b/kstars/auxiliary/thumbnailpicker.cpp
@@ -47,6 +47,9 @@ ThumbnailPickerUI::ThumbnailPickerUI( QWidget *parent ) : QFrame( parent ) {
ThumbnailPicker::ThumbnailPicker( SkyObject *o, const QPixmap &current, QWidget *parent, double _w, double _h, QString cap )
: QDialog( parent ), SelectedImageIndex(-1), dd((DetailDialog*)parent), Object(o), bImageFound( false )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
wid = _w;
ht = _h;
Image = new QPixmap( current );
diff --git a/kstars/dialogs/addcatdialog.cpp b/kstars/dialogs/addcatdialog.cpp
index b52f2d6..b7b0955 100644
--- a/kstars/dialogs/addcatdialog.cpp
+++ b/kstars/dialogs/addcatdialog.cpp
@@ -40,6 +40,9 @@ AddCatDialogUI::AddCatDialogUI( QWidget *parent ) : QFrame( parent ) {
AddCatDialog::AddCatDialog( KStars *_ks )
: QDialog( ( QWidget* )_ks )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
QDir::setCurrent( QDir::homePath() );
acd = new AddCatDialogUI(this);
diff --git a/kstars/dialogs/addlinkdialog.cpp b/kstars/dialogs/addlinkdialog.cpp
index 503d289..f8f8820 100644
--- a/kstars/dialogs/addlinkdialog.cpp
+++ b/kstars/dialogs/addlinkdialog.cpp
@@ -33,6 +33,9 @@ AddLinkDialogUI::AddLinkDialogUI( QWidget *parent ) : QFrame( parent ) {
AddLinkDialog::AddLinkDialog( QWidget *parent, const QString &oname )
: QDialog( parent ), ObjectName( oname )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ald = new AddLinkDialogUI(this);
setWindowTitle( i18n( "Add Custom URL to %1", oname ) );
diff --git a/kstars/dialogs/detaildialog.cpp b/kstars/dialogs/detaildialog.cpp
index 227ada4..3ef5082 100644
--- a/kstars/dialogs/detaildialog.cpp
+++ b/kstars/dialogs/detaildialog.cpp
@@ -74,6 +74,9 @@ DetailDialog::DetailDialog(SkyObject *o, const KStarsDateTime &ut, GeoLocation *
selectedObject(o),
Data(0), DataComet(0), Pos(0), Links(0), Adv(0), Log(0)
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
setFaceType( Tabbed );
setBackgroundRole( QPalette::Base );
diff --git a/kstars/dialogs/exportimagedialog.cpp b/kstars/dialogs/exportimagedialog.cpp
index b14ad46..9e22aa1 100644
--- a/kstars/dialogs/exportimagedialog.cpp
+++ b/kstars/dialogs/exportimagedialog.cpp
@@ -37,6 +37,9 @@ ExportImageDialogUI::ExportImageDialogUI(QWidget *parent)
ExportImageDialog::ExportImageDialog(const QString &url, const QSize &size, ImageExporter *imgExporter)
: QDialog((QWidget*) KStars::Instance()), m_KStars(KStars::Instance()), m_Url(url), m_Size(size)
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
m_DialogUI = new ExportImageDialogUI(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
diff --git a/kstars/dialogs/finddialog.cpp b/kstars/dialogs/finddialog.cpp
index 198428a..2e96a6c 100644
--- a/kstars/dialogs/finddialog.cpp
+++ b/kstars/dialogs/finddialog.cpp
@@ -60,6 +60,9 @@ FindDialog::FindDialog( QWidget* parent ) :
timer(0),
m_targetObject( 0 )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ui = new FindDialogUI( this );
setWindowTitle( i18n( "Find Object" ) );
diff --git a/kstars/dialogs/focusdialog.cpp b/kstars/dialogs/focusdialog.cpp
index 78f1c79..5e83099 100644
--- a/kstars/dialogs/focusdialog.cpp
+++ b/kstars/dialogs/focusdialog.cpp
@@ -35,6 +35,9 @@ FocusDialogUI::FocusDialogUI( QWidget *parent ) : QFrame( parent ) {
FocusDialog::FocusDialog( KStars *_ks )
: QDialog( _ks ), ks( _ks )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
//initialize point to the current focus position
Point = *ks->map()->focus();
diff --git a/kstars/dialogs/fovdialog.cpp b/kstars/dialogs/fovdialog.cpp
index b402b4d..a7abcd9 100644
--- a/kstars/dialogs/fovdialog.cpp
+++ b/kstars/dialogs/fovdialog.cpp
@@ -75,6 +75,9 @@ NewFOVUI::NewFOVUI( QWidget *parent ) : QFrame( parent ) {
FOVDialog::FOVDialog( QWidget* p ) :
QDialog( p )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
// Register FOV* data type
if( fovID == -1 )
fovID = qRegisterMetaType<FOV*>("FOV*");
diff --git a/kstars/dialogs/locationdialog.cpp b/kstars/dialogs/locationdialog.cpp
index 4c47e7d..7f5d311 100644
--- a/kstars/dialogs/locationdialog.cpp
+++ b/kstars/dialogs/locationdialog.cpp
@@ -41,6 +41,9 @@ LocationDialogUI::LocationDialogUI( QWidget *parent ) : QFrame( parent )
LocationDialog::LocationDialog( QWidget* parent ) :
QDialog( parent ), timer( 0 )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
KStarsData* data = KStarsData::Instance();
SelectedCity = NULL;
diff --git a/kstars/dialogs/timedialog.cpp b/kstars/dialogs/timedialog.cpp
index c520fba..41287e4 100644
--- a/kstars/dialogs/timedialog.cpp
+++ b/kstars/dialogs/timedialog.cpp
@@ -36,6 +36,9 @@
TimeDialog::TimeDialog( const KStarsDateTime &now, GeoLocation *_geo, QWidget *parent, bool UTCFrame )
: QDialog( parent ), geo( _geo )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
UTCNow = UTCFrame;
QFrame *page = new QFrame(this);
diff --git a/kstars/ekos/ekosmanager.cpp b/kstars/ekos/ekosmanager.cpp
index 8cb3d86..467205c 100644
--- a/kstars/ekos/ekosmanager.cpp
+++ b/kstars/ekos/ekosmanager.cpp
@@ -49,6 +49,12 @@
EkosManager::EkosManager(QWidget *parent) : QDialog(parent)
{
+#ifdef Q_OS_OSX
+ if(Options::independentWindowEkos())
+ setWindowFlags(Qt::Window);
+ else
+ setWindowFlags(Qt::Tool);
+#endif
setupUi(this);
new EkosAdaptor(this);
diff --git a/kstars/ekos/guide/internalguide/rcalibration.cpp b/kstars/ekos/guide/internalguide/rcalibration.cpp
index 26923c5..d1baf8b 100644
--- a/kstars/ekos/guide/internalguide/rcalibration.cpp
+++ b/kstars/ekos/guide/internalguide/rcalibration.cpp
@@ -40,6 +40,9 @@
internalCalibration::internalCalibration(cgmath *mathObject, Ekos::Guide *parent)
: QWidget(parent)
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ui.setupUi(this);
setWindowTitle(i18n("Calibration"));
diff --git a/kstars/ekos/profileeditor.cpp b/kstars/ekos/profileeditor.cpp
index 049d766..f1ff464 100644
--- a/kstars/ekos/profileeditor.cpp
+++ b/kstars/ekos/profileeditor.cpp
@@ -30,6 +30,9 @@ ProfileEditorUI::ProfileEditorUI( QWidget *p ) : QFrame( p )
ProfileEditor::ProfileEditor(QWidget *w ) : QDialog( w )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ui = new ProfileEditorUI( this );
pi = NULL;
diff --git a/kstars/fitsviewer/fitsviewer.cpp b/kstars/fitsviewer/fitsviewer.cpp
index 34b336c..300c3c7 100644
--- a/kstars/fitsviewer/fitsviewer.cpp
+++ b/kstars/fitsviewer/fitsviewer.cpp
@@ -70,6 +70,13 @@ QStringList FITSViewer::filterTypes = QStringList() << I18N_NOOP("Auto Stretch")
FITSViewer::FITSViewer (QWidget *parent)
: KXmlGuiWindow (parent)
{
+#ifdef Q_OS_OSX
+ if(Options::independentWindowFITS())
+ setWindowFlags(Qt::Window);
+ else
+ setWindowFlags(Qt::Tool);
+#endif
+
fitsTab = new QTabWidget(this);
undoGroup = new QUndoGroup(this);
diff --git a/kstars/indi/drivermanager.cpp b/kstars/indi/drivermanager.cpp
index 2d94d7e..0f34b62 100644
--- a/kstars/indi/drivermanager.cpp
+++ b/kstars/indi/drivermanager.cpp
@@ -93,6 +93,9 @@ DriverManager * DriverManager::Instance()
DriverManager::DriverManager(QWidget *parent)
: QDialog( parent )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+ #endif
currentPort = Options::serverPortStart().toInt()-1;
lastGroup = NULL;
diff --git a/kstars/indi/guimanager.cpp b/kstars/indi/guimanager.cpp
index 7d912e4..c8b0b76 100644
--- a/kstars/indi/guimanager.cpp
+++ b/kstars/indi/guimanager.cpp
@@ -56,6 +56,13 @@ GUIManager * GUIManager::Instance()
GUIManager::GUIManager(QWidget *parent) : QWidget(parent, Qt::Window)
{
+#ifdef Q_OS_OSX
+ if(Options::independentWindowINDI())
+ setWindowFlags(Qt::Window);
+ else
+ setWindowFlags(Qt::Tool);
+#endif
+
mainLayout = new QVBoxLayout(this);
mainLayout->setMargin(10);
mainLayout->setSpacing(10);
diff --git a/kstars/indi/indidevice.cpp b/kstars/indi/indidevice.cpp
index dbaf2a9..88a2e20 100644
--- a/kstars/indi/indidevice.cpp
+++ b/kstars/indi/indidevice.cpp
@@ -52,6 +52,11 @@ const char *libindi_strings_context = "string from libindi, used in the config d
INDI_D::INDI_D(GUIManager *in_manager, INDI::BaseDevice *in_dv, ClientManager *in_cm) : QDialog( 0 )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
+
+
guiManager = in_manager;
dv = in_dv;
clientManager = in_cm;
diff --git a/kstars/indi/indidriver.cpp b/kstars/indi/indidriver.cpp
index 24c7ca0..8c217a6 100644
--- a/kstars/indi/indidriver.cpp
+++ b/kstars/indi/indidriver.cpp
@@ -62,6 +62,9 @@
DeviceManagerUI::DeviceManagerUI(QWidget *parent) : QFrame(parent)
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
setupUi(this);
localTreeWidget->setSortingEnabled(false);
diff --git a/kstars/kstars.cpp b/kstars/kstars.cpp
index 5a383d1..956a822 100644
--- a/kstars/kstars.cpp
+++ b/kstars/kstars.cpp
@@ -68,6 +68,8 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate )
m_PlanetViewer(0), m_WUTDialog(0), m_JMoonTool(0), m_MoonPhaseTool(0), m_FlagManager(0), m_HorizonManager(0), m_EyepieceView(0),
m_addDSODialog(0), m_WIView(0), m_ObsConditions(0), m_wiDock(0), DialogIsObsolete(false), StartClockRunning( clockrun ), StartDateString( startdate )
{
+ setWindowTitle(i18n("KStars"));
+
// Initialize logging settings
if (Options::disableLogging())
KSUtils::Logging::Disable();
diff --git a/kstars/kstarsactions.cpp b/kstars/kstarsactions.cpp
index 20ce13d..3ee7602 100644
--- a/kstars/kstarsactions.cpp
+++ b/kstars/kstarsactions.cpp
@@ -642,6 +642,9 @@ void KStars::slotViewOps() {
//KConfigDialog didn't find an instance of this dialog, so lets create it :
KConfigDialog* dialog = new KConfigDialog( this, "settings",
Options::self() );
+ #ifdef Q_OS_OSX
+ dialog->setWindowFlags(Qt::Tool);
+ #endif
connect( dialog, SIGNAL( settingsChanged( const QString &) ), this, SLOT( slotApplyConfigChanges() ) );
diff --git a/kstars/oal/execute.cpp b/kstars/oal/execute.cpp
index a67f895..1b9cb0c 100644
--- a/kstars/oal/execute.cpp
+++ b/kstars/oal/execute.cpp
@@ -40,6 +40,9 @@
Execute::Execute() {
QWidget *w = new QWidget;
ui.setupUi( w );
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(w);
diff --git a/kstars/printing/foveditordialog.cpp b/kstars/printing/foveditordialog.cpp
index 4551ad2..9358b25 100644
--- a/kstars/printing/foveditordialog.cpp
+++ b/kstars/printing/foveditordialog.cpp
@@ -29,6 +29,9 @@
FovEditorDialogUI::FovEditorDialogUI(QWidget *parent) : QFrame(parent)
{
setupUi(this);
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
setWindowTitle(i18n("Field of View Snapshot Browser"));
}
diff --git a/kstars/printing/printingwizard.cpp b/kstars/printing/printingwizard.cpp
index 037f46e..d17926f 100644
--- a/kstars/printing/printingwizard.cpp
+++ b/kstars/printing/printingwizard.cpp
@@ -396,6 +396,9 @@ void PrintingWizard::slotNextPage()
void PrintingWizard::setupWidgets()
{
+ #ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+ #endif
m_WizardStack = new QStackedWidget(this);
setWindowTitle(i18n("Printing Wizard"));
diff --git a/kstars/tools/adddeepskyobject.cpp b/kstars/tools/adddeepskyobject.cpp
index 30e585b..9bcab67 100644
--- a/kstars/tools/adddeepskyobject.cpp
+++ b/kstars/tools/adddeepskyobject.cpp
@@ -28,6 +28,9 @@
AddDeepSkyObject::AddDeepSkyObject( QWidget *parent, SyncedCatalogComponent *catalog ) :
QDialog( parent ), m_catalog( catalog ), ui( new Ui::AddDeepSkyObject ) {
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
Q_ASSERT( catalog );
ui->setupUi( this );
diff --git a/kstars/tools/altvstime.cpp b/kstars/tools/altvstime.cpp
index 9ef2745..3c3a036 100644
--- a/kstars/tools/altvstime.cpp
+++ b/kstars/tools/altvstime.cpp
@@ -57,6 +57,10 @@ AltVsTimeUI::AltVsTimeUI( QWidget *p ) :
AltVsTime::AltVsTime( QWidget* parent) :
QDialog( parent )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
+
setWindowTitle(i18n( "Altitude vs. Time" ) );
setModal( false );
diff --git a/kstars/tools/astrocalc.cpp b/kstars/tools/astrocalc.cpp
index 2c6cb56..8527417 100644
--- a/kstars/tools/astrocalc.cpp
+++ b/kstars/tools/astrocalc.cpp
@@ -44,6 +44,10 @@
AstroCalc::AstroCalc( QWidget* parent ) :
QDialog( parent )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
+
// List of messages. Maybe there is better place for it...
QString message =
i18n("<QT>"
diff --git a/kstars/tools/exporteyepieceview.cpp b/kstars/tools/exporteyepieceview.cpp
index 4838d24..6e97e0a 100644
--- a/kstars/tools/exporteyepieceview.cpp
+++ b/kstars/tools/exporteyepieceview.cpp
@@ -37,6 +37,10 @@
ExportEyepieceView::ExportEyepieceView( const SkyPoint *_sp, const KStarsDateTime &dt, const QPixmap *renderImage, const QPixmap *renderChart,
QWidget *parent ) : QDialog( parent ), m_dt( dt ) {
+
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
m_sp = new SkyPoint( *_sp ); // Work on a copy.
Q_ASSERT( renderChart );
diff --git a/kstars/tools/eyepiecefield.cpp b/kstars/tools/eyepiecefield.cpp
index 2ed5cfe..e099347 100644
--- a/kstars/tools/eyepiecefield.cpp
+++ b/kstars/tools/eyepiecefield.cpp
@@ -47,6 +47,10 @@
EyepieceField::EyepieceField( QWidget *parent ) : QDialog( parent ) {
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
+
setWindowTitle( i18n( "Eyepiece Field View" ) );
m_sp = 0;
diff --git a/kstars/tools/flagmanager.cpp b/kstars/tools/flagmanager.cpp
index f20049e..d81d714 100644
--- a/kstars/tools/flagmanager.cpp
+++ b/kstars/tools/flagmanager.cpp
@@ -48,6 +48,9 @@ FlagManagerUI::FlagManagerUI( QWidget *p ) : QFrame( p ) {
FlagManager::FlagManager( QWidget *ks )
: QDialog( ks )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
QList<QStandardItem*> itemList;
QList<QImage> imageList;
QStringList flagNames;
diff --git a/kstars/tools/horizonmanager.cpp b/kstars/tools/horizonmanager.cpp
index 1fe5d64..3ad6fd0 100644
--- a/kstars/tools/horizonmanager.cpp
+++ b/kstars/tools/horizonmanager.cpp
@@ -37,6 +37,9 @@ HorizonManager::HorizonManager( QWidget *w )
: QDialog( w )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ui = new HorizonManagerUI( this );
ui->setStyleSheet("QPushButton:checked { background-color: red; }");
diff --git a/kstars/tools/jmoontool.cpp b/kstars/tools/jmoontool.cpp
index 7679766..ac7ebf3 100644
--- a/kstars/tools/jmoontool.cpp
+++ b/kstars/tools/jmoontool.cpp
@@ -41,11 +41,15 @@
JMoonTool::JMoonTool(QWidget *parent)
: QDialog( parent )
{
+
ksw = (KStars*)parent;
QFrame *page = new QFrame(this);
setWindowTitle( i18n("Jupiter Moons Tool") );
setModal( false );
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
QVBoxLayout *vlay = new QVBoxLayout;
vlay->setMargin( 0 );
diff --git a/kstars/tools/moonphasetool.cpp b/kstars/tools/moonphasetool.cpp
index 9e7480a..62db822 100644
--- a/kstars/tools/moonphasetool.cpp
+++ b/kstars/tools/moonphasetool.cpp
@@ -22,6 +22,9 @@
MoonPhaseTool::MoonPhaseTool(QWidget *parent)
: QDialog( parent, Qt::Dialog )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
//KStarsDateTime dtStart ( KStarsDateTime::currentDateTime() );
m_Moon = new KSMoon;
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index 3523718..9e4240c 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -95,6 +95,9 @@ ObservingList::ObservingList()
LogObject(0), m_CurrentObject(0),
isModified(false), bIsLarge(true), m_dl( 0 )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ui = new ObservingListUI( this );
QVBoxLayout *mainLayout= new QVBoxLayout;
mainLayout->addWidget(ui);
diff --git a/kstars/tools/obslistwizard.cpp b/kstars/tools/obslistwizard.cpp
index 2484757..370ec63 100644
--- a/kstars/tools/obslistwizard.cpp
+++ b/kstars/tools/obslistwizard.cpp
@@ -41,6 +41,9 @@ ObsListWizardUI::ObsListWizardUI( QWidget *p ) : QFrame ( p ) {
ObsListWizard::ObsListWizard( QWidget *ksparent ) :
QDialog( ksparent )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
olw = new ObsListWizardUI( this );
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(olw);
diff --git a/kstars/tools/planetviewer.cpp b/kstars/tools/planetviewer.cpp
index 46c908c..5a21251 100644
--- a/kstars/tools/planetviewer.cpp
+++ b/kstars/tools/planetviewer.cpp
@@ -50,6 +50,9 @@ PlanetViewerUI::PlanetViewerUI( QWidget *p ) : QFrame( p ) {
PlanetViewer::PlanetViewer(QWidget *parent)
: QDialog( parent ), scale(1.0), isClockRunning(false), tmr(this)
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
KStarsData *data = KStarsData::Instance();
pw = new PlanetViewerUI( this );
diff --git a/kstars/tools/scriptbuilder.cpp b/kstars/tools/scriptbuilder.cpp
index 03489cf..d33e64b 100644
--- a/kstars/tools/scriptbuilder.cpp
+++ b/kstars/tools/scriptbuilder.cpp
@@ -47,6 +47,9 @@
OptionsTreeViewWidget::OptionsTreeViewWidget( QWidget *p ) : QFrame( p ) {
setupUi( this );
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
}
OptionsTreeView::OptionsTreeView( QWidget *p )
@@ -115,6 +118,9 @@ ScriptNameWidget::ScriptNameWidget( QWidget *p ) : QFrame( p ) {
ScriptNameDialog::ScriptNameDialog( QWidget *p )
: QDialog( p )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
snw = new ScriptNameWidget( this );
QVBoxLayout *mainLayout = new QVBoxLayout;
@@ -152,6 +158,9 @@ ScriptBuilder::ScriptBuilder( QWidget *parent )
currentFileURL(), currentDir( QDir::homePath() ),
currentScriptName(), currentAuthor()
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
ks = (KStars*)parent;
sb = new ScriptBuilderUI(this);
diff --git a/kstars/tools/skycalendar.cpp b/kstars/tools/skycalendar.cpp
index 4730bab..6ff7831 100644
--- a/kstars/tools/skycalendar.cpp
+++ b/kstars/tools/skycalendar.cpp
@@ -44,6 +44,10 @@ SkyCalendarUI::SkyCalendarUI( QWidget *parent )
SkyCalendar::SkyCalendar( QWidget *parent )
: QDialog( parent )
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
+
scUI = new SkyCalendarUI( this );
QVBoxLayout *mainLayout = new QVBoxLayout;
diff --git a/kstars/tools/whatsinteresting/wiview.cpp b/kstars/tools/whatsinteresting/wiview.cpp
index 30436e9..7d228bd 100644
--- a/kstars/tools/whatsinteresting/wiview.cpp
+++ b/kstars/tools/whatsinteresting/wiview.cpp
@@ -29,6 +29,8 @@
WIView::WIView(QWidget *parent, ObsConditions *obs) : QWidget(parent), m_Obs(obs), m_CurCategorySelected(-1)
{
+
+
m_ModManager = new ModelManager(m_Obs);
m_BaseView = new QQuickView();
diff --git a/kstars/tools/wutdialog.cpp b/kstars/tools/wutdialog.cpp
index da0c388..9624758 100644
--- a/kstars/tools/wutdialog.cpp
+++ b/kstars/tools/wutdialog.cpp
@@ -52,6 +52,9 @@ WUTDialog::WUTDialog( QWidget *parent, bool _session, GeoLocation *_geo, KStarsD
EveningFlag(0),
timer(NULL)
{
+#ifdef Q_OS_OSX
+ setWindowFlags(Qt::Tool);
+#endif
WUT = new WUTDialogUI( this );
QVBoxLayout *mainLayout = new QVBoxLayout;