Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3e2037

Browse files
committed
Update ui
1 parent0031ef6 commitb3e2037

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

‎CMakeLists.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ target_link_libraries(CopyPlusPlus PRIVATE QHotkey::QHotkey)
7777
add_subdirectory("3rdparty/qt-material-widgets/components")
7878
target_link_libraries(CopyPlusPlusPRIVATE components)
7979

80+
add_subdirectory("3rdparty/qt-material-widgets/examples")
81+
8082
qt5_create_translation(QM_FILES${CMAKE_SOURCE_DIR}/translations${TS_FILES})
8183

8284
set_target_properties(CopyPlusPlus PROPERTIES

‎src/ui/mainwindow.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ void MainWindow::initUI()
7676
ui->autoToggle->setText(tr("Auto Mode"));
7777
ui->hotkeyToggle->setText(tr("Hotkey Mode"));
7878

79+
auto settingBtn = ui->bottomWidget->findChild<QtMaterialFlatButton *>("pushButton");
80+
settingBtn->setText(tr("Settings"));
81+
settingBtn->setIcon(QIcon(":/icons/settings"));
82+
settingBtn->setRole(Material::Primary);
83+
settingBtn->setBackgroundMode(Qt::OpaqueMode);
84+
7985
setFixedSize(sizeHint());// 放到最后,更新窗口大小
8086

8187
settingsWindow =nullptr;

‎src/ui/mainwindow.ui‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<item>
104104
<widgetclass="QtMaterialFlatButton"name="pushButton">
105105
<propertyname="text">
106-
<string>设置</string>
106+
<string>Settings</string>
107107
</property>
108108
</widget>
109109
</item>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp