Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
Linuxでメニューバーが表示されなくなったに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
CSReviser committed Apr 9, 2022
1 parent 3db0e71 commit 5ec86cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace {
// int day = regexp.cap( 2 ).toInt();
// result = QString( " (%1/%2/%3)" ).arg( regexp.cap( 3 ) )
// .arg( month, 2, 10, QLatin1Char( '0' ) ).arg( day, 2, 10, QLatin1Char( '0' ) );
result = QString( " (2022/04/05)" );
result = QString( " (2022/04/09)" );
}
return result;
}
Expand All @@ -103,6 +103,7 @@ MainWindow::MainWindow( QWidget *parent )
setGeometry( rect );
#endif
#ifdef Q_OS_LINUX // Linuxでは高さが足りなくなるので縦方向に伸ばしておく
menuBar()->setNativeMenuBar(false); // メニューバーが表示されなくなったに対応
setMaximumHeight( maximumHeight() + X11_WINDOW_VERTICAL_INCREMENT );
setMinimumHeight( maximumHeight() + X11_WINDOW_VERTICAL_INCREMENT );
QRect rect = geometry();
Expand Down

0 comments on commit 5ec86cd

Please sign in to comment.