casalogger package for CASA 6
Source
xxxxxxxxxx
132
132
//qDebug() << "========";
133
133
logView->scrollToBottom();
134
134
logView->setSelectionMode(QAbstractItemView::ExtendedSelection);
135
135
logView->setTextElideMode(Qt::ElideLeft);
136
136
QSettings settings("NRAO", "casa");
137
137
resize(settings.value("logSize", QSize(800, 300)).toSize());
138
138
139
139
QPoint pt = settings.value("logPos", QPoint(200, 200)).toPoint();
140
140
//qDebug() << "logPos=" << pt;
141
141
#if QT_VERSION >= 0x060000
142
-
auto screen = QGuiApplication::primaryScreen( );
143
-
auto geom = screen->geometry();
144
-
int width = geom.width( );
145
-
int height = geom.height();
142
+
auto screen = QGuiApplication::primaryScreen( );
143
+
auto geom = screen->geometry();
144
+
int width = geom.width( );
145
+
int height = geom.height();
146
146
#else
147
147
int width = QApplication::desktop()->width();
148
148
int height = QApplication::desktop()->height();
149
149
#endif
150
150
while (pt.x() < 0) pt.rx() += width;
151
151
while (pt.x() > width) pt.rx() -= width;
152
152
while (pt.y() < 0) pt.ry() += height;
153
153
while (pt.y() > height) pt.ry() -= height;
154
154
155
155
move(pt);