fix(frontend): Adjust UI according to blueprint.

Description: 根据设计稿调整UI

Log: 根据设计稿调整UI
This commit is contained in:
zhangjiaping 2021-01-25 11:37:34 +08:00
parent 6ce4490da4
commit 7aadf794ad
19 changed files with 390 additions and 221 deletions

View File

@ -64,8 +64,8 @@ void ContentWidget::initUI() {
});
m_resultDetailArea->setWidget(m_detailView);
m_resultDetailArea->setWidgetResizable(true);
m_resultListArea->setStyleSheet("QScrollArea{background:transparent;}");
m_resultDetailArea->setStyleSheet("QScrollArea{background: rgba(0,0,0,0.05); border-radius: 4px;}");
m_resultListArea->setStyleSheet("QScrollArea{background: transparent;}");
m_resultDetailArea->setStyleSheet("QScrollArea{background: transparent; border-radius: 4px;}");
this->addWidget(m_homePage);
this->addWidget(m_resultPage);
@ -90,35 +90,17 @@ void ContentWidget::initListView()
setupConnect(m_appListView);
setupConnect(m_bestListView);
m_fileTitleLabel = new QLabel(m_resultList);
m_fileTitleLabel->setContentsMargins(8, 0, 0, 0);
m_fileTitleLabel->setFixedHeight(24);
m_fileTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}");
m_fileTitleLabel = new TitleLabel(m_resultList);
m_fileTitleLabel->setText(getTitleName(SearchItem::SearchType::Files));
m_dirTitleLabel = new QLabel(m_resultList);
m_dirTitleLabel->setContentsMargins(8, 0, 0, 0);
m_dirTitleLabel->setFixedHeight(24);
m_dirTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}");
m_dirTitleLabel = new TitleLabel(m_resultList);
m_dirTitleLabel->setText(getTitleName(SearchItem::SearchType::Dirs));
m_contentTitleLabel = new QLabel(m_resultList);
m_contentTitleLabel->setContentsMargins(8, 0, 0, 0);
m_contentTitleLabel->setFixedHeight(24);
m_contentTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}");
m_contentTitleLabel = new TitleLabel(m_resultList);
m_contentTitleLabel->setText(getTitleName(SearchItem::SearchType::Contents));
m_appTitleLabel = new QLabel(m_resultList);
m_appTitleLabel->setContentsMargins(8, 0, 0, 0);
m_appTitleLabel->setFixedHeight(24);
m_appTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}");
m_appTitleLabel = new TitleLabel(m_resultList);
m_appTitleLabel->setText(getTitleName(SearchItem::SearchType::Apps));
m_settingTitleLabel = new QLabel(m_resultList);
m_settingTitleLabel->setContentsMargins(8, 0, 0, 0);
m_settingTitleLabel->setFixedHeight(24);
m_settingTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}");
m_settingTitleLabel = new TitleLabel(m_resultList);
m_settingTitleLabel->setText(getTitleName(SearchItem::SearchType::Settings));
m_bestTitleLabel = new QLabel(m_resultList);
m_bestTitleLabel->setContentsMargins(8, 0, 0, 0);
m_bestTitleLabel->setFixedHeight(24);
m_bestTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}");
m_bestTitleLabel = new TitleLabel(m_resultList);
m_bestTitleLabel->setText(getTitleName(SearchItem::SearchType::Best));
m_appShowMoreLabel = new ShowMoreLabel(m_resultList);
@ -329,6 +311,7 @@ void ContentWidget::initHomePage() {
itemWidget->setLayout(layout);
for (int j = 0; j < lists.at(i).count(); j++) {
HomePageItem * item = new HomePageItem(itemWidget, i, lists.at(i).at(j));
item->setFixedSize(265, 48);
layout->addWidget(item, j / 2, j % 2);
}
} else {
@ -339,6 +322,7 @@ void ContentWidget::initHomePage() {
itemWidget->setLayout(layout);
Q_FOREACH(QString path, lists.at(i)){
HomePageItem * item = new HomePageItem(itemWidget, i, path);
item->setFixedSize(100, 100);
layout->addWidget(item);
}
for (int j = 0; j < 5 - lists.at(i).length(); j++) {
@ -425,6 +409,12 @@ void ContentWidget::refreshSearchList(const QVector<QStringList>& lists) {
m_detailView->clearLayout();
m_contentDetailList.clear();
m_appShowMoreLabel->resetLabel();
m_settingShowMoreLabel->resetLabel();
m_dirShowMoreLabel->resetLabel();
m_fileShowMoreLabel->resetLabel();
m_contentShowMoreLabel->resetLabel();
if (! m_appList.isEmpty())
m_appList.clear();
if (! m_settingList.isEmpty())

View File

@ -8,6 +8,7 @@
#include "control/search-detail-view.h"
#include "home-page-item.h"
#include "show-more-label.h"
#include "title-label.h"
class ContentWidget : public QStackedWidget
{
@ -50,12 +51,12 @@ private:
SearchListView * m_settingListView = nullptr;
SearchListView * m_appListView = nullptr;
SearchListView * m_bestListView = nullptr;
QLabel * m_fileTitleLabel = nullptr;
QLabel * m_dirTitleLabel = nullptr;
QLabel * m_contentTitleLabel = nullptr;
QLabel * m_appTitleLabel = nullptr;
QLabel * m_settingTitleLabel = nullptr;
QLabel * m_bestTitleLabel = nullptr;
TitleLabel * m_fileTitleLabel = nullptr;
TitleLabel * m_dirTitleLabel = nullptr;
TitleLabel * m_contentTitleLabel = nullptr;
TitleLabel * m_appTitleLabel = nullptr;
TitleLabel * m_settingTitleLabel = nullptr;
TitleLabel * m_bestTitleLabel = nullptr;
ShowMoreLabel * m_appShowMoreLabel = nullptr;
ShowMoreLabel * m_settingShowMoreLabel = nullptr;
ShowMoreLabel * m_dirShowMoreLabel = nullptr;

View File

@ -8,7 +8,8 @@ HEADERS += \
$$PWD/search-detail-view.h \
$$PWD/option-view.h \
$$PWD/home-page-item.h \
$$PWD/show-more-label.h
$$PWD/show-more-label.h \
$$PWD/title-label.h
SOURCES += \
$$PWD/config-file.cpp \
@ -18,4 +19,5 @@ SOURCES += \
$$PWD/search-detail-view.cpp \
$$PWD/option-view.cpp \
$$PWD/home-page-item.cpp \
$$PWD/show-more-label.cpp
$$PWD/show-more-label.cpp \
$$PWD/title-label.cpp

View File

@ -3,10 +3,12 @@
#include <QProcess>
#include <QDebug>
#include <gio/gdesktopappinfo.h>
#include <QPainter>
HomePageItem::HomePageItem(QWidget *parent, const int& type, const QString& path) : QWidget(parent)
{
setupUi(type, path);
m_transparency = 0.06;
}
HomePageItem::~HomePageItem()
@ -21,7 +23,7 @@ HomePageItem::~HomePageItem()
void HomePageItem::setupUi(const int& type, const QString& path) {
m_widget = new QWidget(this);
m_widget->setObjectName("MainWidget");
m_widget->setStyleSheet("QWidget#MainWidget{background: rgba(0, 0, 0, 0.05); border-radius: 4px;}");
// m_widget->setStyleSheet("QWidget#MainWidget{background: rgba(0, 0, 0, 0.05); border-radius: 4px;}");
m_widget->installEventFilter(this);
connect(this, &HomePageItem::onItemClicked, this, [ = ]() {
switch (SearchListView::getResType(path)) {
@ -129,14 +131,41 @@ void HomePageItem::setupUi(const int& type, const QString& path) {
bool HomePageItem::eventFilter(QObject *watched, QEvent *event){
if (watched == m_widget){
if (event->type() == QEvent::MouseButtonPress) {
Q_EMIT this->onItemClicked();
m_widget->setStyleSheet("QWidget#MainWidget{background: rgba(0, 0, 0, 0.1); border-radius: 4px;}");
m_transparency = 0.06;
this->repaint();
return true;
} else if (event->type() == QEvent::MouseButtonRelease) {
m_widget->setStyleSheet("QWidget#MainWidget{background: rgba(0, 0, 0, 0.05); border-radius: 4px;}");
Q_EMIT this->onItemClicked();
m_transparency = 0.06;
this->repaint();
return true;
} else if (event->type() == QEvent::Enter) {
m_transparency = 0.15;
this->repaint();
return true;
} else if (event->type() == QEvent::Leave) {
m_transparency = 0.06;
this->repaint();
return true;
}
}
return QObject::eventFilter(watched, event);
}
void HomePageItem::paintEvent(QPaintEvent *event) {
Q_UNUSED(event)
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
QRect rect = this->rect();
p.setRenderHint(QPainter::Antialiasing); // 反锯齿;
p.setBrush(opt.palette.color(QPalette::Text));
p.setOpacity(m_transparency);
p.setPen(Qt::NoPen);
p.drawRoundedRect(rect, 4, 4);
return QWidget::paintEvent(event);
}

View File

@ -23,6 +23,7 @@ public:
protected:
bool eventFilter(QObject *, QEvent *);
void paintEvent(QPaintEvent *);
private:
void setupUi(const int&, const QString&);
@ -32,6 +33,7 @@ private:
QVBoxLayout * m_vlayout = nullptr;
QLabel * m_iconlabel = nullptr;
QLabel * m_namelabel = nullptr;
double m_transparency = 0;
Q_SIGNALS:
void onItemClicked();

View File

@ -73,35 +73,35 @@ void OptionView::initUI()
m_openLabel = new QLabel(m_optionFrame);
m_openLabel->setText(tr("Open")); //打开
m_openLabel->setStyleSheet("QLabel{font-size: 14px; color: #3D6BE5}");
m_openLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
m_openLabel->setCursor(QCursor(Qt::PointingHandCursor));
m_openLabel->installEventFilter(this);
m_optionLyt->addWidget(m_openLabel);
m_shortcutLabel = new QLabel(m_optionFrame);
m_shortcutLabel->setText(tr("Add Shortcut to Desktop")); //添加到桌面快捷方式
m_shortcutLabel->setStyleSheet("QLabel{font-size: 14px; color: #3D6BE5}");
m_shortcutLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
m_shortcutLabel->setCursor(QCursor(Qt::PointingHandCursor));
m_shortcutLabel->installEventFilter(this);
m_optionLyt->addWidget(m_shortcutLabel);
m_panelLabel = new QLabel(m_optionFrame);
m_panelLabel->setText(tr("Add Shortcut to Panel")); //添加到任务栏快捷方式
m_panelLabel->setStyleSheet("QLabel{font-size: 14px; color: #3D6BE5}");
m_panelLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
m_panelLabel->setCursor(QCursor(Qt::PointingHandCursor));
m_panelLabel->installEventFilter(this);
m_optionLyt->addWidget(m_panelLabel);
m_openPathLabel = new QLabel(m_optionFrame);
m_openPathLabel->setText(tr("Open path")); //打开所在路径
m_openPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3D6BE5}");
m_openPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
m_openPathLabel->setCursor(QCursor(Qt::PointingHandCursor));
m_openPathLabel->installEventFilter(this);
m_optionLyt->addWidget(m_openPathLabel);
m_copyPathLabel = new QLabel(m_optionFrame);
m_copyPathLabel->setText(tr("Copy path")); //复制所在路径
m_copyPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3D6BE5}");
m_copyPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
m_copyPathLabel->setCursor(QCursor(Qt::PointingHandCursor));
m_copyPathLabel->installEventFilter(this);
m_optionLyt->addWidget(m_copyPathLabel);
@ -193,21 +193,81 @@ void OptionView::setupSettingOptions() {
* @return
*/
bool OptionView::eventFilter(QObject *watched, QEvent *event){
if (m_openLabel && watched == m_openLabel && event->type() == QEvent::MouseButtonPress){
Q_EMIT this->onOptionClicked(Options::Open);
return true;
} else if (m_shortcutLabel && watched == m_shortcutLabel && event->type() == QEvent::MouseButtonPress) {
Q_EMIT this->onOptionClicked(Options::Shortcut);
return true;
} else if (m_panelLabel && watched == m_panelLabel && event->type() == QEvent::MouseButtonPress) {
Q_EMIT this->onOptionClicked(Options::Panel);
return true;
} else if (m_openPathLabel && watched == m_openPathLabel && event->type() == QEvent::MouseButtonPress) {
Q_EMIT this->onOptionClicked(Options::OpenPath);
return true;
} else if (m_copyPathLabel && watched == m_copyPathLabel && event->type() == QEvent::MouseButtonPress) {
Q_EMIT this->onOptionClicked(Options::CopyPath);
return true;
if (m_openLabel && watched == m_openLabel){
if (event->type() == QEvent::MouseButtonPress) {
m_openLabel->setStyleSheet("QLabel{font-size: 14px; color: #296CD9;}");
return true;
} else if (event->type() == QEvent::MouseButtonRelease) {
m_openLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
Q_EMIT this->onOptionClicked(Options::Open);
return true;
} else if (event->type() == QEvent::Enter) {
m_openLabel->setStyleSheet("QLabel{font-size: 14px; color: #40A9FB;}");
return true;
} else if (event->type() == QEvent::Leave) {
m_openLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
return true;
}
} else if (m_shortcutLabel && watched == m_shortcutLabel) {
if (event->type() == QEvent::MouseButtonPress) {
m_shortcutLabel->setStyleSheet("QLabel{font-size: 14px; color: #296CD9;}");
return true;
} else if (event->type() == QEvent::MouseButtonRelease) {
m_shortcutLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
Q_EMIT this->onOptionClicked(Options::Shortcut);
return true;
} else if (event->type() == QEvent::Enter) {
m_shortcutLabel->setStyleSheet("QLabel{font-size: 14px; color: #40A9FB;}");
return true;
} else if (event->type() == QEvent::Leave) {
m_shortcutLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
return true;
}
} else if (m_panelLabel && watched == m_panelLabel) {
if (event->type() == QEvent::MouseButtonPress) {
m_panelLabel->setStyleSheet("QLabel{font-size: 14px; color: #296CD9;}");
return true;
} else if (event->type() == QEvent::MouseButtonRelease) {
m_panelLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
Q_EMIT this->onOptionClicked(Options::Panel);
return true;
} else if (event->type() == QEvent::Enter) {
m_panelLabel->setStyleSheet("QLabel{font-size: 14px; color: #40A9FB;}");
return true;
} else if (event->type() == QEvent::Leave) {
m_panelLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
return true;
}
} else if (m_openPathLabel && watched == m_openPathLabel) {
if (event->type() == QEvent::MouseButtonPress) {
m_openPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #296CD9;}");
return true;
} else if (event->type() == QEvent::MouseButtonRelease) {
m_openPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
Q_EMIT this->onOptionClicked(Options::OpenPath);
return true;
} else if (event->type() == QEvent::Enter) {
m_openPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #40A9FB;}");
return true;
} else if (event->type() == QEvent::Leave) {
m_openPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
return true;
}
} else if (m_copyPathLabel && watched == m_copyPathLabel) {
if (event->type() == QEvent::MouseButtonPress) {
m_copyPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #296CD9;}");
return true;
} else if (event->type() == QEvent::MouseButtonRelease) {
m_copyPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
Q_EMIT this->onOptionClicked(Options::CopyPath);
return true;
} else if (event->type() == QEvent::Enter) {
m_copyPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #40A9FB;}");
return true;
} else if (event->type() == QEvent::Leave) {
m_copyPathLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
return true;
}
}
return QObject::eventFilter(watched, event);
}

View File

@ -432,3 +432,20 @@ bool SearchDetailView::copyPathAction(const QString& path) {
clipboard->setText(path);
return true;
}
void SearchDetailView::paintEvent(QPaintEvent *event) {
Q_UNUSED(event)
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
QRect rect = this->rect();
p.setRenderHint(QPainter::Antialiasing); // 反锯齿;
p.setBrush(opt.palette.color(QPalette::Text));
p.setOpacity(0.06);
p.setPen(Qt::NoPen);
p.drawRoundedRect(rect, 4, 4);
return QWidget::paintEvent(event);
}

View File

@ -17,6 +17,9 @@ public:
bool isEmpty();
int getType();
protected:
void paintEvent(QPaintEvent *);
private:
QVBoxLayout * m_layout = nullptr;
QString m_contentText;

View File

@ -14,19 +14,25 @@ ShowMoreLabel::~ShowMoreLabel()
{
}
void ShowMoreLabel::resetLabel()
{
m_textLabel->setText(tr("Show More..."));
}
void ShowMoreLabel::initUi()
{
m_layout = new QHBoxLayout(this);
m_layout->setContentsMargins(0,0,0,6);
m_textLabel = new QLabel(this);
m_textLabel->setText(tr("<u>Show More...</u>"));
m_textLabel->setText(tr("Show More..."));
m_textLabel->setCursor(QCursor(Qt::PointingHandCursor));
m_textLabel->installEventFilter(this);
// m_loadingIconLabel = new QLabel(this); //使用图片显示加载状态时取消此label的注释
// m_loadingIconLabel->setFixedSize(18, 18);
// m_loadingIconLabel->hide();
m_layout->setAlignment(Qt::AlignCenter);
m_layout->setAlignment(Qt::AlignRight);
m_layout->addWidget(m_textLabel);
m_textLabel->setStyleSheet("QLabel{font-size: 14px; color: #3790FA}");
// m_layout->addWidget(m_loadingIconLabel);
}
@ -46,9 +52,9 @@ void ShowMoreLabel::stopLoading()
m_timer->stop();
}
if (m_isOpen) {
m_textLabel->setText(tr("<u>Retract</u>"));
m_textLabel->setText(tr("Retract"));
} else {
m_textLabel->setText(tr("<u>Show More...</u>"));
m_textLabel->setText(tr("Show More..."));
}
m_textLabel->setCursor(QCursor(Qt::PointingHandCursor));
}

View File

@ -12,6 +12,7 @@ class ShowMoreLabel : public QWidget
public:
explicit ShowMoreLabel(QWidget *parent = nullptr);
~ShowMoreLabel();
void resetLabel();
protected:
bool eventFilter(QObject *, QEvent *);

View File

@ -0,0 +1,32 @@
#include "title-label.h"
#include <QPainter>
#include <QStyleOption>
TitleLabel::TitleLabel(QWidget * parent) : QLabel(parent)
{
this->setContentsMargins(8, 0, 0, 0);
this->setFixedHeight(24);
}
TitleLabel::~TitleLabel()
{
}
void TitleLabel::paintEvent(QPaintEvent * event)
{
Q_UNUSED(event)
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
QRect rect = this->rect();
p.setRenderHint(QPainter::Antialiasing); // 反锯齿;
p.setBrush(opt.palette.color(QPalette::Text));
p.setOpacity(0.06);
p.setPen(Qt::NoPen);
p.drawRoundedRect(rect, 0, 0);
return QLabel::paintEvent(event);
}

16
src/control/title-label.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef TITLELABEL_H
#define TITLELABEL_H
#include <QLabel>
class TitleLabel : public QLabel
{
public:
TitleLabel(QWidget * parent = nullptr);
~TitleLabel();
protected:
void paintEvent(QPaintEvent *);
};
#endif // TITLELABEL_H

View File

@ -90,7 +90,7 @@ void SearchBarHLayout::initUI()
m_queryWidget->setLayout(queryWidLayout);
QPixmap pixmap(QString(":/res/icons/edit-find-symbolic.svg"));
QPixmap pixmap(QIcon::fromTheme("system-search-symbolic").pixmap(QSize(20, 20)));
m_queryIcon = new QLabel;
m_queryIcon->setStyleSheet("background:transparent");
m_queryIcon->setFixedSize(pixmap.size());
@ -99,7 +99,7 @@ void SearchBarHLayout::initUI()
m_queryText = new QLabel;
m_queryText->setText(tr("Search"));
m_queryText->setStyleSheet("background:transparent;color:#626c6e;");
m_queryText->setContentsMargins(0,0,0,4);
// m_queryText->setContentsMargins(0,0,0,4);
m_queryText->adjustSize();
queryWidLayout->addWidget(m_queryIcon);

View File

@ -157,16 +157,16 @@ void MainWindow::initUi()
m_titleLyt = new QHBoxLayout(m_titleFrame);
m_titleLyt->setContentsMargins(0, 0, 0, 0);
m_iconLabel = new QLabel(m_titleFrame);
m_iconLabel->setFixedSize(20, 20);
m_iconLabel->setPixmap(QPixmap(":/res/icons/edit-find-symbolic.svg"));
m_iconLabel->setFixedSize(24, 24);
m_iconLabel->setPixmap(QIcon::fromTheme("kylin-search").pixmap(QSize(24, 24)));
m_titleLabel = new QLabel(m_titleFrame);
m_titleLabel->setText(tr("Search"));
m_menuBtn = new QPushButton(m_titleFrame);
m_menuBtn->setFixedSize(24, 24);
// m_menuBtn->setIcon(QIcon(":/res/icons/commonuse.svg"));
m_menuBtn->setIcon(QIcon::fromTheme("document-properties-symbolic"));
m_menuBtn->setStyleSheet("QPushButton{background: transparent;}"
"QPushButton:hover:!pressed{background: transparent;}");
m_menuBtn->setProperty("useIconHighlightEffect", 0x08);
m_menuBtn->setFlat(true);
connect(m_menuBtn, &QPushButton::clicked, this, [ = ]() {
if (m_settingsWidget) { //当此窗口已存在时,仅需置顶
m_settingsWidget->showWidget();
@ -282,6 +282,10 @@ void MainWindow::searchContent(QString searchcontent){
m_app_setting_lists.clear();
m_contentFrame->setKeyword(searchcontent);
m_search_result_file->clear();
m_search_result_dir->clear();
m_search_result_content->clear();
AppMatch * appMatchor = new AppMatch(this);
SettingsMatch * settingMatchor = new SettingsMatch(this);
//应用与设置搜索

View File

@ -31,7 +31,7 @@ void SettingsWidget::initUi() {
this->setMinimumHeight(460);
this->setMaximumHeight(680);
m_mainLyt = new QVBoxLayout(this);
m_mainLyt->setContentsMargins(24, 9, 24, 24);
m_mainLyt->setContentsMargins(24, 9, 16, 24);
this->setLayout(m_mainLyt);
this->setStyleSheet("QLabel{color: palette(text);}");
@ -42,14 +42,18 @@ void SettingsWidget::initUi() {
m_titleLyt->setContentsMargins(0, 0, 0, 0);
m_titleFrame->setLayout(m_titleLyt);
m_titleIcon = new QLabel(m_titleFrame);
m_titleIcon->setPixmap(QPixmap(":/res/icons/edit-find-symbolic.svg"));
m_titleIcon->setPixmap(QIcon::fromTheme("kylin-search").pixmap(QSize(24, 24)));
m_titleLabel = new QLabel(m_titleFrame);
m_titleLabel->setText(tr("Search"));
m_closeBtn = new QPushButton(m_titleFrame);
m_closeBtn->setFixedSize(24, 24);
m_closeBtn->setIcon(QIcon(":/res/icons/close.svg"));
m_closeBtn->setStyleSheet("QPushButton{background: transparent;}"
"QPushButton:hover:!pressed{background: transparent;}");
// m_closeBtn->setStyleSheet("QPushButton{background: transparent;}"
// "QPushButton:hover:!pressed{background: transparent;}");
m_closeBtn->setIcon(QIcon::fromTheme("window-close-symbolic"));
m_closeBtn->setProperty("isWindowButton", 0x02);
m_closeBtn->setProperty("useIconHighlightEffect", 0x08);
m_closeBtn->setFlat(true);
connect(m_closeBtn, &QPushButton::clicked, this, [ = ]() {
Q_EMIT this->settingWidgetClosed();
m_timer->stop();
@ -77,7 +81,8 @@ void SettingsWidget::initUi() {
m_indexNumLabel->setText(tr("..."));
m_mainLyt->addWidget(m_indexTitleLabel);
m_mainLyt->addWidget(m_indexStateLabel);
m_mainLyt->addWidget(m_indexNumLabel);
// m_mainLyt->addWidget(m_indexNumLabel);
m_indexNumLabel->hide();
//文件索引设置(黑名单)
m_indexSettingLabel = new QLabel(this);
@ -151,23 +156,23 @@ void SettingsWidget::initUi() {
m_mainLyt->addWidget(m_engineDescLabel);
m_mainLyt->addWidget(m_radioBtnFrame);
//取消与确认按钮
m_bottomBtnFrame = new QFrame(this);
m_bottomBtnLyt = new QHBoxLayout(m_bottomBtnFrame);
m_bottomBtnFrame->setLayout(m_bottomBtnLyt);
m_bottomBtnLyt->setSpacing(20);
m_cancelBtn = new QPushButton(m_bottomBtnFrame);
m_cancelBtn->setText(tr("Cancel"));
m_cancelBtn->setFixedSize(80, 32);
connect(m_cancelBtn, &QPushButton::clicked, this, &SettingsWidget::onBtnCancelClicked);
m_confirmBtn = new QPushButton(m_bottomBtnFrame);
m_confirmBtn->setText(tr("Confirm"));
m_confirmBtn->setFixedSize(80, 32);
connect(m_confirmBtn, &QPushButton::clicked, this, &SettingsWidget::onBtnConfirmClicked);
m_bottomBtnLyt->addStretch();
m_bottomBtnLyt->addWidget(m_cancelBtn);
m_bottomBtnLyt->addWidget(m_confirmBtn);
m_mainLyt->addWidget(m_bottomBtnFrame);
//取消与确认按钮 (隐藏)
// m_bottomBtnFrame = new QFrame(this);
// m_bottomBtnLyt = new QHBoxLayout(m_bottomBtnFrame);
// m_bottomBtnFrame->setLayout(m_bottomBtnLyt);
// m_bottomBtnLyt->setSpacing(20);
// m_cancelBtn = new QPushButton(m_bottomBtnFrame);
// m_cancelBtn->setText(tr("Cancel"));
// m_cancelBtn->setFixedSize(80, 32);
// connect(m_cancelBtn, &QPushButton::clicked, this, &SettingsWidget::onBtnCancelClicked);
// m_confirmBtn = new QPushButton(m_bottomBtnFrame);
// m_confirmBtn->setText(tr("Confirm"));
// m_confirmBtn->setFixedSize(80, 32);
// connect(m_confirmBtn, &QPushButton::clicked, this, &SettingsWidget::onBtnConfirmClicked);
// m_bottomBtnLyt->addStretch();
// m_bottomBtnLyt->addWidget(m_cancelBtn);
// m_bottomBtnLyt->addWidget(m_confirmBtn);
// m_mainLyt->addWidget(m_bottomBtnFrame);
m_mainLyt->addStretch();
}
@ -285,23 +290,23 @@ void SettingsWidget::showWidget()
this->show();
}
/**
* @brief SettingsWidget::onBtnConfirmClicked
*/
void SettingsWidget::onBtnConfirmClicked() {
Q_EMIT this->settingWidgetClosed();
m_timer->stop();
this->close();
}
///**
// * @brief SettingsWidget::onBtnConfirmClicked 点击确认按钮的槽函数
// */
//void SettingsWidget::onBtnConfirmClicked() {
// Q_EMIT this->settingWidgetClosed();
// m_timer->stop();
// this->close();
//}
/**
* @brief SettingsWidget::onBtnCancelClicked
*/
void SettingsWidget::onBtnCancelClicked() {
Q_EMIT this->settingWidgetClosed();
m_timer->stop();
this->close();
}
///**
// * @brief SettingsWidget::onBtnCancelClicked 点击取消按钮的槽函数
// */
//void SettingsWidget::onBtnCancelClicked() {
// Q_EMIT this->settingWidgetClosed();
// m_timer->stop();
// this->close();
//}
/**
* @brief SettingsWidget::onBtnAddClicked

View File

@ -78,8 +78,8 @@ Q_SIGNALS:
void settingWidgetClosed();
private Q_SLOTS:
void onBtnConfirmClicked();
void onBtnCancelClicked();
// void onBtnConfirmClicked();
// void onBtnCancelClicked();
void onBtnAddClicked();
void onBtnDelClicked(const QString&);
};

View File

@ -9,47 +9,47 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="349"/>
<location filename="../../src/content-widget.cpp" line="351"/>
<source>Open Quickly</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="350"/>
<location filename="../../src/content-widget.cpp" line="352"/>
<source>Commonly Used</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="586"/>
<location filename="../../src/content-widget.cpp" line="588"/>
<source>Apps</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="588"/>
<location filename="../../src/content-widget.cpp" line="590"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="590"/>
<location filename="../../src/content-widget.cpp" line="592"/>
<source>Files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="592"/>
<location filename="../../src/content-widget.cpp" line="594"/>
<source>Dirs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="594"/>
<location filename="../../src/content-widget.cpp" line="596"/>
<source>File Contents</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="596"/>
<location filename="../../src/content-widget.cpp" line="598"/>
<source>Best Matches</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="598"/>
<location filename="../../src/content-widget.cpp" line="600"/>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
@ -106,7 +106,7 @@
<context>
<name>QObject</name>
<message>
<location filename="../../src/main.cpp" line="118"/>
<location filename="../../src/main.cpp" line="145"/>
<source>ukui-search is already running!</source>
<translation type="unfinished"></translation>
</message>
@ -150,114 +150,113 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="66"/>
<location filename="../../src/settings-widget.cpp" line="70"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="72"/>
<location filename="../../src/settings-widget.cpp" line="76"/>
<source>Index State</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="75"/>
<location filename="../../src/settings-widget.cpp" line="77"/>
<location filename="../../src/settings-widget.cpp" line="79"/>
<location filename="../../src/settings-widget.cpp" line="81"/>
<source>...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="84"/>
<location filename="../../src/settings-widget.cpp" line="89"/>
<source>File Index Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="87"/>
<location filename="../../src/settings-widget.cpp" line="92"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="96"/>
<location filename="../../src/settings-widget.cpp" line="101"/>
<source>Add ignored folders</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="117"/>
<location filename="../../src/settings-widget.cpp" line="122"/>
<source>Search Engine Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="120"/>
<location filename="../../src/settings-widget.cpp" line="125"/>
<source>Please select search engine you preferred.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="133"/>
<location filename="../../src/settings-widget.cpp" line="138"/>
<source>baidu</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="135"/>
<location filename="../../src/settings-widget.cpp" line="140"/>
<source>sougou</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="137"/>
<location filename="../../src/settings-widget.cpp" line="142"/>
<source>360</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="160"/>
<location filename="../../src/settings-widget.cpp" line="319"/>
<location filename="../../src/settings-widget.cpp" line="326"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="164"/>
<source>Confirm</source>
<location filename="../../src/settings-widget.cpp" line="340"/>
<source>Parent folder has been blocked!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="258"/>
<location filename="../../src/settings-widget.cpp" line="265"/>
<source>Creating ...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="261"/>
<location filename="../../src/settings-widget.cpp" line="268"/>
<source>Done</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="269"/>
<location filename="../../src/settings-widget.cpp" line="276"/>
<source>Index Entry: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="313"/>
<location filename="../../src/settings-widget.cpp" line="320"/>
<source>Directories</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="314"/>
<location filename="../../src/settings-widget.cpp" line="321"/>
<source>select blocked folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="315"/>
<location filename="../../src/settings-widget.cpp" line="322"/>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="316"/>
<location filename="../../src/settings-widget.cpp" line="323"/>
<source>Position: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="317"/>
<location filename="../../src/settings-widget.cpp" line="324"/>
<source>FileName: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="318"/>
<location filename="../../src/settings-widget.cpp" line="325"/>
<source>FileType: </source>
<translation type="unfinished"></translation>
</message>
@ -267,12 +266,12 @@
<message>
<location filename="../../src/control/show-more-label.cpp" line="22"/>
<location filename="../../src/control/show-more-label.cpp" line="51"/>
<source>&lt;u&gt;Show More...&lt;/u&gt;</source>
<source>Show More...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/control/show-more-label.cpp" line="49"/>
<source>&lt;u&gt;Retract&lt;/u&gt;</source>
<source>Retract</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -9,47 +9,47 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="349"/>
<location filename="../../src/content-widget.cpp" line="351"/>
<source>Open Quickly</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="350"/>
<location filename="../../src/content-widget.cpp" line="352"/>
<source>Commonly Used</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="586"/>
<location filename="../../src/content-widget.cpp" line="588"/>
<source>Apps</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="588"/>
<location filename="../../src/content-widget.cpp" line="590"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="590"/>
<location filename="../../src/content-widget.cpp" line="592"/>
<source>Files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="592"/>
<location filename="../../src/content-widget.cpp" line="594"/>
<source>Dirs</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="594"/>
<location filename="../../src/content-widget.cpp" line="596"/>
<source>File Contents</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="596"/>
<location filename="../../src/content-widget.cpp" line="598"/>
<source>Best Matches</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="598"/>
<location filename="../../src/content-widget.cpp" line="600"/>
<source>Unknown</source>
<translation type="unfinished"></translation>
</message>
@ -106,7 +106,7 @@
<context>
<name>QObject</name>
<message>
<location filename="../../src/main.cpp" line="118"/>
<location filename="../../src/main.cpp" line="145"/>
<source>ukui-search is already running!</source>
<translation type="unfinished"></translation>
</message>
@ -150,114 +150,113 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="66"/>
<location filename="../../src/settings-widget.cpp" line="70"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="72"/>
<location filename="../../src/settings-widget.cpp" line="76"/>
<source>Index State</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="75"/>
<location filename="../../src/settings-widget.cpp" line="77"/>
<location filename="../../src/settings-widget.cpp" line="79"/>
<location filename="../../src/settings-widget.cpp" line="81"/>
<source>...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="84"/>
<location filename="../../src/settings-widget.cpp" line="89"/>
<source>File Index Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="87"/>
<location filename="../../src/settings-widget.cpp" line="92"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="96"/>
<location filename="../../src/settings-widget.cpp" line="101"/>
<source>Add ignored folders</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="117"/>
<location filename="../../src/settings-widget.cpp" line="122"/>
<source>Search Engine Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="120"/>
<location filename="../../src/settings-widget.cpp" line="125"/>
<source>Please select search engine you preferred.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="133"/>
<location filename="../../src/settings-widget.cpp" line="138"/>
<source>baidu</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="135"/>
<location filename="../../src/settings-widget.cpp" line="140"/>
<source>sougou</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="137"/>
<location filename="../../src/settings-widget.cpp" line="142"/>
<source>360</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="160"/>
<location filename="../../src/settings-widget.cpp" line="319"/>
<location filename="../../src/settings-widget.cpp" line="326"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="164"/>
<source>Confirm</source>
<location filename="../../src/settings-widget.cpp" line="340"/>
<source>Parent folder has been blocked!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="258"/>
<location filename="../../src/settings-widget.cpp" line="265"/>
<source>Creating ...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="261"/>
<location filename="../../src/settings-widget.cpp" line="268"/>
<source>Done</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="269"/>
<location filename="../../src/settings-widget.cpp" line="276"/>
<source>Index Entry: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="313"/>
<location filename="../../src/settings-widget.cpp" line="320"/>
<source>Directories</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="314"/>
<location filename="../../src/settings-widget.cpp" line="321"/>
<source>select blocked folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="315"/>
<location filename="../../src/settings-widget.cpp" line="322"/>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="316"/>
<location filename="../../src/settings-widget.cpp" line="323"/>
<source>Position: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="317"/>
<location filename="../../src/settings-widget.cpp" line="324"/>
<source>FileName: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="318"/>
<location filename="../../src/settings-widget.cpp" line="325"/>
<source>FileType: </source>
<translation type="unfinished"></translation>
</message>
@ -267,12 +266,12 @@
<message>
<location filename="../../src/control/show-more-label.cpp" line="22"/>
<location filename="../../src/control/show-more-label.cpp" line="51"/>
<source>&lt;u&gt;Show More...&lt;/u&gt;</source>
<source>Show More...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/control/show-more-label.cpp" line="49"/>
<source>&lt;u&gt;Retract&lt;/u&gt;</source>
<source>Retract</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -9,47 +9,47 @@
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="349"/>
<location filename="../../src/content-widget.cpp" line="351"/>
<source>Open Quickly</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="350"/>
<location filename="../../src/content-widget.cpp" line="352"/>
<source>Commonly Used</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="586"/>
<location filename="../../src/content-widget.cpp" line="588"/>
<source>Apps</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="588"/>
<location filename="../../src/content-widget.cpp" line="590"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="590"/>
<location filename="../../src/content-widget.cpp" line="592"/>
<source>Files</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="592"/>
<location filename="../../src/content-widget.cpp" line="594"/>
<source>Dirs</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="594"/>
<location filename="../../src/content-widget.cpp" line="596"/>
<source>File Contents</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="596"/>
<location filename="../../src/content-widget.cpp" line="598"/>
<source>Best Matches</source>
<translation></translation>
</message>
<message>
<location filename="../../src/content-widget.cpp" line="598"/>
<location filename="../../src/content-widget.cpp" line="600"/>
<source>Unknown</source>
<translation></translation>
</message>
@ -106,7 +106,7 @@
<context>
<name>QObject</name>
<message>
<location filename="../../src/main.cpp" line="118"/>
<location filename="../../src/main.cpp" line="145"/>
<source>ukui-search is already running!</source>
<translation></translation>
</message>
@ -150,114 +150,117 @@
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="66"/>
<location filename="../../src/settings-widget.cpp" line="70"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="72"/>
<location filename="../../src/settings-widget.cpp" line="76"/>
<source>Index State</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="75"/>
<location filename="../../src/settings-widget.cpp" line="77"/>
<location filename="../../src/settings-widget.cpp" line="79"/>
<location filename="../../src/settings-widget.cpp" line="81"/>
<source>...</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="84"/>
<location filename="../../src/settings-widget.cpp" line="89"/>
<source>File Index Settings</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="87"/>
<location filename="../../src/settings-widget.cpp" line="92"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="96"/>
<location filename="../../src/settings-widget.cpp" line="101"/>
<source>Add ignored folders</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="117"/>
<location filename="../../src/settings-widget.cpp" line="122"/>
<source>Search Engine Settings</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="120"/>
<location filename="../../src/settings-widget.cpp" line="125"/>
<source>Please select search engine you preferred.</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="133"/>
<location filename="../../src/settings-widget.cpp" line="138"/>
<source>baidu</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="135"/>
<location filename="../../src/settings-widget.cpp" line="140"/>
<source>sougou</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="137"/>
<location filename="../../src/settings-widget.cpp" line="142"/>
<source>360</source>
<translation>360</translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="160"/>
<location filename="../../src/settings-widget.cpp" line="319"/>
<location filename="../../src/settings-widget.cpp" line="326"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="164"/>
<source>Confirm</source>
<translation></translation>
<location filename="../../src/settings-widget.cpp" line="340"/>
<source>Parent folder has been blocked!</source>
<translation>12345</translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="258"/>
<source>Confirm</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="265"/>
<source>Creating ...</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="261"/>
<location filename="../../src/settings-widget.cpp" line="268"/>
<source>Done</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="269"/>
<location filename="../../src/settings-widget.cpp" line="276"/>
<source>Index Entry: %1</source>
<translation>: %1</translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="313"/>
<location filename="../../src/settings-widget.cpp" line="320"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="314"/>
<location filename="../../src/settings-widget.cpp" line="321"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="315"/>
<location filename="../../src/settings-widget.cpp" line="322"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="316"/>
<location filename="../../src/settings-widget.cpp" line="323"/>
<source>Position: </source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="317"/>
<location filename="../../src/settings-widget.cpp" line="324"/>
<source>FileName: </source>
<translation></translation>
</message>
<message>
<location filename="../../src/settings-widget.cpp" line="318"/>
<location filename="../../src/settings-widget.cpp" line="325"/>
<source>FileType: </source>
<translation></translation>
</message>
@ -267,12 +270,12 @@
<message>
<location filename="../../src/control/show-more-label.cpp" line="22"/>
<location filename="../../src/control/show-more-label.cpp" line="51"/>
<source>&lt;u&gt;Show More...&lt;/u&gt;</source>
<translation>&lt;u&gt;...&lt;</translation>
<source>Show More...</source>
<translation>...</translation>
</message>
<message>
<location filename="../../src/control/show-more-label.cpp" line="49"/>
<source>&lt;u&gt;Retract&lt;/u&gt;</source>
<source>Retract</source>
<translation>&lt;u&gt;&lt;</translation>
</message>
<message>