Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KStars
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
28
Issues
28
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Education
KStars
Commits
de60e6f5
Commit
de60e6f5
authored
Oct 25, 2016
by
Robert Lancaster
Committed by
Jasem Mutlaq
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Windows as tools on OSX to workaround some Qt bug where they get behind main window
parent
684cb829
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
147 additions
and
0 deletions
+147
-0
kstars/auxiliary/kswizard.cpp
kstars/auxiliary/kswizard.cpp
+4
-0
kstars/auxiliary/thumbnaileditor.cpp
kstars/auxiliary/thumbnaileditor.cpp
+3
-0
kstars/auxiliary/thumbnailpicker.cpp
kstars/auxiliary/thumbnailpicker.cpp
+3
-0
kstars/dialogs/addcatdialog.cpp
kstars/dialogs/addcatdialog.cpp
+3
-0
kstars/dialogs/addlinkdialog.cpp
kstars/dialogs/addlinkdialog.cpp
+3
-0
kstars/dialogs/detaildialog.cpp
kstars/dialogs/detaildialog.cpp
+3
-0
kstars/dialogs/exportimagedialog.cpp
kstars/dialogs/exportimagedialog.cpp
+3
-0
kstars/dialogs/finddialog.cpp
kstars/dialogs/finddialog.cpp
+3
-0
kstars/dialogs/focusdialog.cpp
kstars/dialogs/focusdialog.cpp
+3
-0
kstars/dialogs/fovdialog.cpp
kstars/dialogs/fovdialog.cpp
+3
-0
kstars/dialogs/locationdialog.cpp
kstars/dialogs/locationdialog.cpp
+3
-0
kstars/dialogs/timedialog.cpp
kstars/dialogs/timedialog.cpp
+3
-0
kstars/ekos/ekosmanager.cpp
kstars/ekos/ekosmanager.cpp
+6
-0
kstars/ekos/guide/internalguide/rcalibration.cpp
kstars/ekos/guide/internalguide/rcalibration.cpp
+3
-0
kstars/ekos/profileeditor.cpp
kstars/ekos/profileeditor.cpp
+3
-0
kstars/fitsviewer/fitsviewer.cpp
kstars/fitsviewer/fitsviewer.cpp
+7
-0
kstars/indi/drivermanager.cpp
kstars/indi/drivermanager.cpp
+3
-0
kstars/indi/guimanager.cpp
kstars/indi/guimanager.cpp
+7
-0
kstars/indi/indidevice.cpp
kstars/indi/indidevice.cpp
+5
-0
kstars/indi/indidriver.cpp
kstars/indi/indidriver.cpp
+3
-0
kstars/kstars.cpp
kstars/kstars.cpp
+2
-0
kstars/kstarsactions.cpp
kstars/kstarsactions.cpp
+3
-0
kstars/oal/execute.cpp
kstars/oal/execute.cpp
+3
-0
kstars/printing/foveditordialog.cpp
kstars/printing/foveditordialog.cpp
+3
-0
kstars/printing/printingwizard.cpp
kstars/printing/printingwizard.cpp
+3
-0
kstars/tools/adddeepskyobject.cpp
kstars/tools/adddeepskyobject.cpp
+3
-0
kstars/tools/altvstime.cpp
kstars/tools/altvstime.cpp
+4
-0
kstars/tools/astrocalc.cpp
kstars/tools/astrocalc.cpp
+4
-0
kstars/tools/exporteyepieceview.cpp
kstars/tools/exporteyepieceview.cpp
+4
-0
kstars/tools/eyepiecefield.cpp
kstars/tools/eyepiecefield.cpp
+4
-0
kstars/tools/flagmanager.cpp
kstars/tools/flagmanager.cpp
+3
-0
kstars/tools/horizonmanager.cpp
kstars/tools/horizonmanager.cpp
+3
-0
kstars/tools/jmoontool.cpp
kstars/tools/jmoontool.cpp
+4
-0
kstars/tools/moonphasetool.cpp
kstars/tools/moonphasetool.cpp
+3
-0
kstars/tools/observinglist.cpp
kstars/tools/observinglist.cpp
+3
-0
kstars/tools/obslistwizard.cpp
kstars/tools/obslistwizard.cpp
+3
-0
kstars/tools/planetviewer.cpp
kstars/tools/planetviewer.cpp
+3
-0
kstars/tools/scriptbuilder.cpp
kstars/tools/scriptbuilder.cpp
+9
-0
kstars/tools/skycalendar.cpp
kstars/tools/skycalendar.cpp
+4
-0
kstars/tools/whatsinteresting/wiview.cpp
kstars/tools/whatsinteresting/wiview.cpp
+2
-0
kstars/tools/wutdialog.cpp
kstars/tools/wutdialog.cpp
+3
-0
No files found.
kstars/auxiliary/kswizard.cpp
View file @
de60e6f5
...
...
@@ -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"
)
);
...
...
kstars/auxiliary/thumbnaileditor.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/auxiliary/thumbnailpicker.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/dialogs/addcatdialog.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/dialogs/addlinkdialog.cpp
View file @
de60e6f5
...
...
@@ -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
)
);
...
...
kstars/dialogs/detaildialog.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/dialogs/exportimagedialog.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/dialogs/finddialog.cpp
View file @
de60e6f5
...
...
@@ -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"
)
);
...
...
kstars/dialogs/focusdialog.cpp
View file @
de60e6f5
...
...
@@ -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
();
...
...
kstars/dialogs/fovdialog.cpp
View file @
de60e6f5
...
...
@@ -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*"
);
...
...
kstars/dialogs/locationdialog.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/dialogs/timedialog.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/ekos/ekosmanager.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/ekos/guide/internalguide/rcalibration.cpp
View file @
de60e6f5
...
...
@@ -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"
));
...
...
kstars/ekos/profileeditor.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/fitsviewer/fitsviewer.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/indi/drivermanager.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/indi/guimanager.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/indi/indidevice.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/indi/indidriver.cpp
View file @
de60e6f5
...
...
@@ -62,6 +62,9 @@
DeviceManagerUI
::
DeviceManagerUI
(
QWidget
*
parent
)
:
QFrame
(
parent
)
{
#ifdef Q_OS_OSX
setWindowFlags
(
Qt
::
Tool
);
#endif
setupUi
(
this
);
localTreeWidget
->
setSortingEnabled
(
false
);
...
...
kstars/kstars.cpp
View file @
de60e6f5
...
...
@@ -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
();
...
...
kstars/kstarsactions.cpp
View file @
de60e6f5
...
...
@@ -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
()
)
);
...
...
kstars/oal/execute.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/printing/foveditordialog.cpp
View file @
de60e6f5
...
...
@@ -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"
));
}
...
...
kstars/printing/printingwizard.cpp
View file @
de60e6f5
...
...
@@ -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"
));
...
...
kstars/tools/adddeepskyobject.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/altvstime.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/astrocalc.cpp
View file @
de60e6f5
...
...
@@ -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>"
...
...
kstars/tools/exporteyepieceview.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/eyepiecefield.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/tools/flagmanager.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/tools/horizonmanager.cpp
View file @
de60e6f5
...
...
@@ -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; }"
);
...
...
kstars/tools/jmoontool.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/moonphasetool.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/tools/observinglist.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/obslistwizard.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/planetviewer.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/scriptbuilder.cpp
View file @
de60e6f5
...
...
@@ -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
);
...
...
kstars/tools/skycalendar.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
kstars/tools/whatsinteresting/wiview.cpp
View file @
de60e6f5
...
...
@@ -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
();
...
...
kstars/tools/wutdialog.cpp
View file @
de60e6f5
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment