From: lixueman Date: Thu, 28 Jul 2022 08:54:03 +0800 Subject: =?utf-8?b?5L+u5pS55YiG57G75LiL5ouJ6YCJ5oup5qGG5a695bqm77yM6Kej5Yaz?= =?utf-8?b?5pyA5aSn5Y+35a2X5L2TaG92ZXLotoXlh7rovrnnlYzpl67popg=?= --- src/UserInterface/ListView/klistview.cpp | 2 +- src/UserInterface/ListView/listview.cpp | 2 +- src/UserInterface/full_mainwindow.cpp | 3 +- src/UserInterface/mainwindow.cpp | 3 +- translations/ukui-menu_bo.ts | 280 ----------------------------- translations/ukui-menu_bo_CN.ts | 292 +++++++++++++++++++++++++++++++ ukui-menu.pro | 2 +- 7 files changed, 297 insertions(+), 287 deletions(-) delete mode 100755 translations/ukui-menu_bo.ts create mode 100644 translations/ukui-menu_bo_CN.ts diff --git a/src/UserInterface/ListView/klistview.cpp b/src/UserInterface/ListView/klistview.cpp index 8151d04..3954bc9 100755 --- a/src/UserInterface/ListView/klistview.cpp +++ b/src/UserInterface/ListView/klistview.cpp @@ -45,8 +45,8 @@ void KListView::onClicked(QModelIndex index) if (var.isValid()) { QString desktopfp = var.value(); - execApp(desktopfp); Q_EMIT sendHideMainWindowSignal(); + execApp(desktopfp); } } diff --git a/src/UserInterface/ListView/listview.cpp b/src/UserInterface/ListView/listview.cpp index 78ed0a3..368f25a 100755 --- a/src/UserInterface/ListView/listview.cpp +++ b/src/UserInterface/ListView/listview.cpp @@ -107,8 +107,8 @@ void ListView::onClicked(QModelIndex index) if (var.value().at(1).toInt() == 0) { Q_EMIT sendAppClassificationBtnClicked(); } else { - execApp(desktopfp); Q_EMIT sendHideMainWindowSignal(); + execApp(desktopfp); } } } diff --git a/src/UserInterface/full_mainwindow.cpp b/src/UserInterface/full_mainwindow.cpp index 555c6a6..dfd692f 100755 --- a/src/UserInterface/full_mainwindow.cpp +++ b/src/UserInterface/full_mainwindow.cpp @@ -177,7 +177,6 @@ void FullMainWindow::initAppListUI() void FullMainWindow::initMenu() { m_dropDownMenu = new MenuBox(this); - m_dropDownMenu->setFixedWidth(Style::DropMenuWidth); m_allAction = new QAction(m_dropDownMenu); m_letterAction = new QAction(m_dropDownMenu); m_funcAction = new QAction(m_dropDownMenu); @@ -381,7 +380,7 @@ void FullMainWindow::iconAnimationFinished() { m_dropDownMenu->raise(); m_dropDownMenu->exec(m_fullSelectMenuButton->mapToGlobal(QPoint(m_fullSelectMenuButton->width() - -Style::DropMenuWidth, 45))); + - m_dropDownMenu->sizeHint().width(), 45))); } void FullMainWindow::keyPressEvent(QKeyEvent *e) diff --git a/src/UserInterface/mainwindow.cpp b/src/UserInterface/mainwindow.cpp index 147ddae..8427b34 100755 --- a/src/UserInterface/mainwindow.cpp +++ b/src/UserInterface/mainwindow.cpp @@ -560,7 +560,6 @@ void MainWindow::initUi() } m_dropDownMenu = new MenuBox(this); - m_dropDownMenu->setFixedWidth(Style::DropMenuWidth); m_allAction = new QAction(m_dropDownMenu); m_letterAction = new QAction(m_dropDownMenu); m_funcAction = new QAction(m_dropDownMenu); @@ -783,7 +782,7 @@ void MainWindow::iconAnimationFinished() { m_dropDownMenu->raise(); m_dropDownMenu->exec(m_selectMenuButton->mapToGlobal(QPoint(m_selectMenuButton->width() - -Style::DropMenuWidth + 5, 29))); + - m_dropDownMenu->sizeHint().width() + 5, 29))); } void MainWindow::maxAnimationFinished() diff --git a/translations/ukui-menu_bo.ts b/translations/ukui-menu_bo.ts deleted file mode 100755 index 370c9d8..0000000 --- a/translations/ukui-menu_bo.ts +++ /dev/null @@ -1,280 +0,0 @@ - - - - - FullMainWindow - - - Search - - - - - All - - - - - Letter - - - - - Function - - - - - FunctionWidget - - - Search - - - - - ItemDelegate - - - Open the function sort menu - - - - - Open the alphabetical menu - - - - - MainWindow - - - collection - - - - - - - - - All - - - - - - Search - - - - - No recent files - - - - - recent - - - - - Max - - - - - PowerOff - - - - - - - Letter - - - - - - - Function - - - - - QObject - - - - Office - - - - - - Development - - - - - - Image - - - - - - Video - - - - - - Internet - - - - - - Game - - - - - - Education - - - - - - Social - - - - - - System - - - - - - Safe - - - - - - Others - - - - - RightClickMenu - - - Pin to all - - - - - Unpin from all - - - - - Pin to taskbar - - - - - Unpin from taskbar - - - - - Add to desktop shortcuts - - - - - Pin to collection - - - - - Remove from collection - - - - - Uninstall - - - - - Switch user - - - - - Hibernate - - - - - Sleep - - - - - Lock Screen - - - - - Log Out - - - - - Restart - - - - - Power Off - - - - - Personalize this list - - - - - TabletRightClickMenu - - - Pin to taskbar - - - - - Unpin from taskbar - - - - - Add to desktop shortcuts - - - - - Uninstall - - - - diff --git a/translations/ukui-menu_bo_CN.ts b/translations/ukui-menu_bo_CN.ts new file mode 100644 index 0000000..d92f153 --- /dev/null +++ b/translations/ukui-menu_bo_CN.ts @@ -0,0 +1,292 @@ + + + + + FullMainWindow + + + Search + འཚོལ་ཞིབ། + + + + All + ཚང་མ། + + + + Letter + འཕྲིན་ཡིག + + + + Function + བྱེད་ནུས། + + + + FunctionWidget + + + Search + འཚོལ་ཞིབ། + + + + ItemDelegate + + Open feature sort list + 打开功能排序菜单 + + + Open alphabetical list + 打开字母排序菜单 + + + + Open the function sort menu + བྱེད་ལས་རིགས་ཀྱི་ཟས་ཐོའི་ཁ་ཕྱེ་བ། + + + + Open the alphabetical menu + དབྱངས་གསལ་ཡི་གེའི་ཟས་ཐོའི་ཁ་ཕྱེ་བ། + + + + MainWindow + + + + Search + འཚོལ་ཞིབ། + + + + No recent files + ཉེ་དུས་ཀྱི་ཡིག་ཆ་མེད། + + + + + + + + All + ཚང་མ། + + + + collection + བསྡུ་ཉར། + + + + recent + ཉེ་ཆར། + + + + Max + མའེ་ཁེ་སི། + + + + PowerOff + སྒུལ་ཤུགས་ཀྱི་ནུས་པ། + + + Search application + 搜索应用 + + + + + + Letter + འཕྲིན་ཡིག + + + + + + Function + བྱེད་ནུས། + + + + QObject + + + + Office + གཞུང་ལས་ཁང་། + + + + + Development + འཕེལ་རྒྱས་ + + + + + Image + པར་རིས། + + + + + Video + བརྙན་ཕབ། + + + + + Internet + དྲ་སྦྲེལ། + + + + + Game + རོལ་རྩེད། + + + + + Education + སློབ་གསོ། + + + + + Social + སྤྱི་ཚོགས། + + + + + System + ལམ་ལུགས། + + + + + Safe + བདེ་འཇགས། + + + + + Others + དེ་མིན་ད་དུང་ + + + + RightClickMenu + + + Pin to all + མི་ཚང་མར་ཁབ་རྒྱག་པ། + + + + Unpin from all + མི་ཚང་མའི་ཁྲོད་ནས་བཀག་འགོག་བྱེད་ + + + + Pin to taskbar + ལས་འགན་སྒྲུབ་པར་ཁབ་རྒྱག་པ། + + + + Unpin from taskbar + ལས་འགན་སྒྲུབ་ས་ནས་ཁ་པར་གཏོང་བ། + + + + Add to desktop shortcuts + ཅོག་ཙེའི་སྟེང་གི་མགྱོགས་ལམ་ཁ་སྣོན་བྱས་ཡོད། + + + + Pin to collection + འཚོལ་སྡུད་བྱེད་པའི་ཁབ་སྐུད། + + + + Remove from collection + བསྡུ་ཉར་དངོས་རྫས་ཁྲོད་ནས་ཕྱིར་ + + + + Uninstall + སྒྲིག་སྦྱོར་བྱས་མེད་པ། + + + + Switch user + གློག་སྒོ་འབྱེད་པའི་སྤྱོད་མཁན + + + + Hibernate + ཧིན་རྡུ་ཉི་ཞི་ཡ། + + + + Sleep + གཉིད་ཁུག་པ། + + + + Lock Screen + སྒོ་ལྕགས་ཀྱི་བརྙན་ཤེལ། + + + + Log Out + ཕྱིར་འཐེན་བྱ་དགོས། + + + + Restart + ཡང་བསྐྱར་འགོ་འཛུགས་ + + + + Power Off + གློག་ཆད་པ། + + + + Personalize this list + མིང་ཐོ་འདི་རང་གཤིས་ཅན་དུ་བསྒྱུར + + + + TabletRightClickMenu + + + Pin to taskbar + ལས་འགན་སྒྲུབ་པར་ཁབ་རྒྱག་པ། + + + + Unpin from taskbar + ལས་འགན་སྒྲུབ་ས་ནས་ཁ་པར་གཏོང་བ། + + + + Add to desktop shortcuts + ཅོག་ཙེའི་སྟེང་གི་མགྱོགས་ལམ་ཁ་སྣོན་བྱས་ཡོད། + + + + Uninstall + སྒྲིག་སྦྱོར་བྱས་མེད་པ། + + + diff --git a/ukui-menu.pro b/ukui-menu.pro index c249692..1ca9797 100755 --- a/ukui-menu.pro +++ b/ukui-menu.pro @@ -20,7 +20,7 @@ TEMPLATE = app target.path = /usr/bin TRANSLATIONS+=\ - translations/ukui-menu_bo.ts \ + translations/ukui-menu_bo_CN.ts \ translations/ukui-menu_zh_CN.ts \ translations/ukui-menu_tr.ts