Fix: 修改启用/禁用平板模式按钮文案
This commit is contained in:
parent
da8f56f62f
commit
9a3114bc73
|
@ -77,7 +77,7 @@ void TabletModeWidget::initConnect()
|
||||||
QWidget* TabletModeWidget::createTabletModeWidget()
|
QWidget* TabletModeWidget::createTabletModeWidget()
|
||||||
{
|
{
|
||||||
QWidget* tabletModeWidget = new QWidget;
|
QWidget* tabletModeWidget = new QWidget;
|
||||||
QLabel* tabletModeText = new QLabel(tr("Tablet mode"));
|
QLabel* tabletModeText = new QLabel(tr("Hide tablet mode in the sidebar"));
|
||||||
m_tabletModeButton = new kdk::KSwitchButton(tabletModeWidget);
|
m_tabletModeButton = new kdk::KSwitchButton(tabletModeWidget);
|
||||||
m_tabletModeButton->setChecked(getTabletModeEnabled());
|
m_tabletModeButton->setChecked(getTabletModeEnabled());
|
||||||
m_tabletModeButton->setEnabled(!getCurrentTabletMode());
|
m_tabletModeButton->setEnabled(!getCurrentTabletMode());
|
||||||
|
@ -99,7 +99,7 @@ QWidget* TabletModeWidget::createTabletModeWidget()
|
||||||
QWidget* TabletModeWidget::createTabletTextWidget() const
|
QWidget* TabletModeWidget::createTabletTextWidget() const
|
||||||
{
|
{
|
||||||
QWidget* tabletTextWidget = new QWidget;
|
QWidget* tabletTextWidget = new QWidget;
|
||||||
QLabel* tabletModeText = new QLabel(tr("Currently in tablet mode, please exit tablet mode if you want to close it"));
|
QLabel* tabletModeText = new QLabel(tr(" Currently in tablet mode, please turn off tablet mode in the sidebar to activate this feature"));
|
||||||
QLabel* tabletModeIcon = new QLabel;
|
QLabel* tabletModeIcon = new QLabel;
|
||||||
QPixmap iconPixmap = QIcon::fromTheme(ICON_NAME).pixmap(16,16);
|
QPixmap iconPixmap = QIcon::fromTheme(ICON_NAME).pixmap(16,16);
|
||||||
tabletModeIcon->setPixmap(iconPixmap);
|
tabletModeIcon->setPixmap(iconPixmap);
|
||||||
|
|
|
@ -79,14 +79,30 @@
|
||||||
<context>
|
<context>
|
||||||
<name>TabletModeWidget</name>
|
<name>TabletModeWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
|
||||||
<source>Tablet mode</source>
|
<source>Tablet mode</source>
|
||||||
<translation>平板模式</translation>
|
<translation type="vanished">平板模式</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
|
||||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||||
<translation>当前为平板环境,如要关闭请退出平板模式。</translation>
|
<translation type="vanished">当前为平板环境,如要关闭请退出平板模式。</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Hide sidebar ‘tablet mode’ switch</source>
|
||||||
|
<translation type="vanished">隐藏侧边栏“平板模式”开关</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source> Currently in tablet mode, the ‘tablet mode’ switch needs to be turned off in the sidebar to perform this operation</source>
|
||||||
|
<translation type="vanished">当前为平板环境,需在侧边栏关闭“平板模式”开关才可进行此操作。</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../tabletmodewidget.cpp" line="60"/>
|
||||||
|
<source>Hide tablet mode in the sidebar</source>
|
||||||
|
<translation>在侧边栏隐藏“平板模式”</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../tabletmodewidget.cpp" line="82"/>
|
||||||
|
<source> Currently in tablet mode, please turn off tablet mode in the sidebar to activate this feature</source>
|
||||||
|
<translation>当前为平板模式,请在侧边栏关闭“平板模式”以激活此功能</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -102,12 +118,12 @@
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../touchscreen.ui" line="152"/>
|
<location filename="../touchscreen.ui" line="133"/>
|
||||||
<source>Label1</source>
|
<source>Label1</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../touchscreen.ui" line="266"/>
|
<location filename="../touchscreen.ui" line="247"/>
|
||||||
<source>Label2</source>
|
<source>Label2</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -191,28 +207,26 @@
|
||||||
<translation type="vanished">在打开的窗口之间切换</translation>
|
<translation type="vanished">在打开的窗口之间切换</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../touchscreen.cpp" line="108"/>
|
<location filename="../touchscreen.cpp" line="105"/>
|
||||||
<source>Touchscreen gesture</source>
|
<source>Touchscreen gesture</source>
|
||||||
<translatorcomment>触摸屏手势</translatorcomment>
|
<translatorcomment>触摸屏手势</translatorcomment>
|
||||||
<translation>触摸屏手势</translation>
|
<translation>触摸屏手势</translation>
|
||||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../touchscreen.cpp" line="110"/>
|
<location filename="../touchscreen.cpp" line="107"/>
|
||||||
<source>More gesture</source>
|
<source>More gesture</source>
|
||||||
<translatorcomment>更多手势</translatorcomment>
|
<translatorcomment>更多手势</translatorcomment>
|
||||||
<translation>更多手势</translation>
|
<translation>更多手势</translation>
|
||||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../touchscreen.cpp" line="202"/>
|
|
||||||
<source>Tablet mode</source>
|
<source>Tablet mode</source>
|
||||||
<translation>平板模式</translation>
|
<translation type="vanished">平板模式</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../touchscreen.cpp" line="230"/>
|
|
||||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||||
<translation>当前为平板环境,如要关闭请退出平板模式。</translation>
|
<translation type="vanished">当前为平板环境,如要关闭请退出平板模式。</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
Loading…
Reference in New Issue