Skip to content

Commit c4aa59a

Browse files
committed
Add size ratio to system log
1 parent c4e0551 commit c4aa59a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/dialogs/mainwindow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ MainWin::MainWin(QWidget *parent)
2828
ui.setupUi(this);
2929

3030
initRedisClient();
31+
initSystemConsole();
3132

3233
QDesktopWidget* desktop = QApplication::desktop();
3334
QRect scr = desktop->screenGeometry();
3435

3536
/* Smart resize on big screens */
36-
qDebug() << "Current ratio width:" << geometry().width()/(float)scr.width();
37-
qDebug() << "Current ratio height:" << geometry().height()/(float)scr.height();
37+
LOG(DEBUG) << "Current ratio width:" << geometry().width()/(float)scr.width();
38+
LOG(DEBUG) << "Current ratio height:" << geometry().height()/(float)scr.height();
3839
float minimumRatioW = 0.5;
3940
float minimumRatioH = 0.7;
4041
if (geometry().width()/(float)scr.width() < minimumRatioW) {
41-
qDebug() << "Resize main window";
42+
LOG(DEBUG) << "Resize main window";
4243
setGeometry(geometry().x(), geometry().y(),
4344
(int)(scr.width() * minimumRatioW),
4445
(int)(scr.height() * minimumRatioH));
4546
}
4647
move(scr.center() - rect().center());
4748

48-
initSystemConsole();
4949
initConnectionsTreeView();
5050
initContextMenus();
5151
initFormButtons();

0 commit comments

Comments
 (0)