Skip to content

Commit de6343b

Browse files
committed
Fix a Qt deprecation warning.
1 parent b84b681 commit de6343b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gui/qt/main_window.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <QProcessEnvironment>
2626
#include <QPushButton>
2727
#include <QRadioButton>
28+
#include <QScreen>
2829
#include <QShortcut>
2930
#include <QSpinBox>
3031
#include <QTabWidget>
@@ -1365,7 +1366,7 @@ void main_window::center_at_startup_if_needed()
13651366
Qt::LeftToRight,
13661367
Qt::AlignCenter,
13671368
size(),
1368-
qApp->desktop()->availableGeometry()
1369+
qApp->primaryScreen()->availableGeometry()
13691370
)
13701371
);
13711372
}

include/tic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ tic_error * tic_halt_and_hold(tic_handle *);
18021802

18031803
/// Sends a "Go Home" command, starting the Tic's homing procedure.
18041804
///
1805-
/// The direcition argument should be 1 for forward or 0 for reverse.
1805+
/// The direction argument should be 1 for forward or 0 for reverse.
18061806
TIC_API TIC_WARN_UNUSED
18071807
tic_error * tic_go_home(tic_handle *, uint8_t direction);
18081808

0 commit comments

Comments
 (0)