feat(frontend): Add web searching & web engine settings.
Description: 添加网页搜索功能和引擎设置功能 Log: 添加网页搜索功能和引擎设置功能
This commit is contained in:
parent
59bf8c53e8
commit
5cf3423052
|
@ -16,7 +16,8 @@ Build-Depends: debhelper (>=9.0.0),
|
||||||
libkf5windowsystem-dev,
|
libkf5windowsystem-dev,
|
||||||
libgsettings-qt-dev,
|
libgsettings-qt-dev,
|
||||||
libqt5x11extras5-dev,
|
libqt5x11extras5-dev,
|
||||||
libuchardet-dev
|
libuchardet-dev,
|
||||||
|
qtwebengine5-dev
|
||||||
Standards-Version: 4.5.0
|
Standards-Version: 4.5.0
|
||||||
Homepage: https://www.ukui.org/
|
Homepage: https://www.ukui.org/
|
||||||
Vcs-Git: https://github.com/ukui/ukui-search.git
|
Vcs-Git: https://github.com/ukui/ukui-search.git
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#define CONTENT_INDEX_DATABASE_STATE "content_index_database_state"
|
#define CONTENT_INDEX_DATABASE_STATE "content_index_database_state"
|
||||||
#define INDEX_GENERATOR_NORMAL_EXIT "index_generator_normal_exit"
|
#define INDEX_GENERATOR_NORMAL_EXIT "index_generator_normal_exit"
|
||||||
#define INOTIFY_NORMAL_EXIT "inotify_normal_exit"
|
#define INOTIFY_NORMAL_EXIT "inotify_normal_exit"
|
||||||
|
#define WEB_ENGINE "web_engine"
|
||||||
#define PATH_EMPTY 1;
|
#define PATH_EMPTY 1;
|
||||||
#define PATH_NOT_IN_HOME 2;
|
#define PATH_NOT_IN_HOME 2;
|
||||||
#define PATH_PARENT_BLOCKED 3;
|
#define PATH_PARENT_BLOCKED 3;
|
||||||
|
|
|
@ -105,12 +105,14 @@ void ContentWidget::initListView()
|
||||||
m_settingListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Settings);
|
m_settingListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Settings);
|
||||||
m_appListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Apps);
|
m_appListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Apps);
|
||||||
m_bestListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Best);
|
m_bestListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Best);
|
||||||
|
m_webListView = new SearchListView(m_resultList, QStringList(), SearchItem::SearchType::Web);
|
||||||
setupConnect(m_fileListView);
|
setupConnect(m_fileListView);
|
||||||
setupConnect(m_dirListView);
|
setupConnect(m_dirListView);
|
||||||
setupConnect(m_contentListView);
|
setupConnect(m_contentListView);
|
||||||
setupConnect(m_settingListView);
|
setupConnect(m_settingListView);
|
||||||
setupConnect(m_appListView);
|
setupConnect(m_appListView);
|
||||||
setupConnect(m_bestListView);
|
setupConnect(m_bestListView);
|
||||||
|
setupConnect(m_webListView);
|
||||||
|
|
||||||
m_fileTitleLabel = new TitleLabel(m_resultList);
|
m_fileTitleLabel = new TitleLabel(m_resultList);
|
||||||
m_fileTitleLabel->setText(getTitleName(SearchItem::SearchType::Files));
|
m_fileTitleLabel->setText(getTitleName(SearchItem::SearchType::Files));
|
||||||
|
@ -124,6 +126,8 @@ void ContentWidget::initListView()
|
||||||
m_settingTitleLabel->setText(getTitleName(SearchItem::SearchType::Settings));
|
m_settingTitleLabel->setText(getTitleName(SearchItem::SearchType::Settings));
|
||||||
m_bestTitleLabel = new TitleLabel(m_resultList);
|
m_bestTitleLabel = new TitleLabel(m_resultList);
|
||||||
m_bestTitleLabel->setText(getTitleName(SearchItem::SearchType::Best));
|
m_bestTitleLabel->setText(getTitleName(SearchItem::SearchType::Best));
|
||||||
|
m_webTitleLabel = new TitleLabel(m_resultList);
|
||||||
|
m_webTitleLabel->setText(getTitleName(SearchItem::SearchType::Web));
|
||||||
|
|
||||||
m_appShowMoreLabel = new ShowMoreLabel(m_resultList);
|
m_appShowMoreLabel = new ShowMoreLabel(m_resultList);
|
||||||
m_settingShowMoreLabel = new ShowMoreLabel(m_resultList);
|
m_settingShowMoreLabel = new ShowMoreLabel(m_resultList);
|
||||||
|
@ -148,6 +152,8 @@ void ContentWidget::initListView()
|
||||||
m_listLyt->addWidget(m_contentTitleLabel);
|
m_listLyt->addWidget(m_contentTitleLabel);
|
||||||
m_listLyt->addWidget(m_contentListView);
|
m_listLyt->addWidget(m_contentListView);
|
||||||
m_listLyt->addWidget(m_contentShowMoreLabel);
|
m_listLyt->addWidget(m_contentShowMoreLabel);
|
||||||
|
m_listLyt->addWidget(m_webTitleLabel);
|
||||||
|
m_listLyt->addWidget(m_webListView);
|
||||||
|
|
||||||
this->hideListView();
|
this->hideListView();
|
||||||
m_resultList->setFixedHeight(0);
|
m_resultList->setFixedHeight(0);
|
||||||
|
@ -226,6 +232,8 @@ void ContentWidget::hideListView()
|
||||||
m_contentTitleLabel->hide();
|
m_contentTitleLabel->hide();
|
||||||
m_contentListView->hide();
|
m_contentListView->hide();
|
||||||
m_contentShowMoreLabel->hide();
|
m_contentShowMoreLabel->hide();
|
||||||
|
m_webTitleLabel->hide();
|
||||||
|
m_webListView->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -248,8 +256,11 @@ void ContentWidget::setupConnect(SearchListView * listview) {
|
||||||
} else {
|
} else {
|
||||||
m_detailView->isContent = false;
|
m_detailView->isContent = false;
|
||||||
}
|
}
|
||||||
m_detailView->setupWidget(type, path);
|
if (type == SearchItem::SearchType::Web) {
|
||||||
// m_detailView->setWebWidget(this->m_keyword);
|
m_detailView->setWebWidget(this->m_keyword);
|
||||||
|
} else {
|
||||||
|
m_detailView->setupWidget(type, path);
|
||||||
|
}
|
||||||
listview->is_current_list = true;
|
listview->is_current_list = true;
|
||||||
Q_EMIT this->currentItemChanged();
|
Q_EMIT this->currentItemChanged();
|
||||||
listview->is_current_list = false;
|
listview->is_current_list = false;
|
||||||
|
@ -308,6 +319,10 @@ void ContentWidget::resetListHeight()
|
||||||
height += m_contentShowMoreLabel->height();
|
height += m_contentShowMoreLabel->height();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (! m_webListView->isHidden) {
|
||||||
|
height += m_webTitleLabel->height();
|
||||||
|
height += m_webListView->height();
|
||||||
|
}
|
||||||
m_resultList->setFixedHeight(height);
|
m_resultList->setFixedHeight(height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -447,6 +462,13 @@ void ContentWidget::refreshSearchList(const QVector<QStringList>& lists) {
|
||||||
m_bestListView->isHidden = true;
|
m_bestListView->isHidden = true;
|
||||||
m_bestListView->clear();
|
m_bestListView->clear();
|
||||||
}
|
}
|
||||||
|
if (m_webListView) {
|
||||||
|
m_webListView->clear();
|
||||||
|
m_webListView->appendItem(m_keyword);
|
||||||
|
m_webTitleLabel->show();
|
||||||
|
m_webListView->show();
|
||||||
|
m_webListView->isHidden = false;
|
||||||
|
}
|
||||||
m_resultList->setFixedHeight(0);
|
m_resultList->setFixedHeight(0);
|
||||||
m_detailView->clearLayout();
|
m_detailView->clearLayout();
|
||||||
m_contentDetailList.clear();
|
m_contentDetailList.clear();
|
||||||
|
@ -639,6 +661,8 @@ QString ContentWidget::getTitleName(const int& type) {
|
||||||
return tr("File Contents");
|
return tr("File Contents");
|
||||||
case SearchItem::SearchType::Best :
|
case SearchItem::SearchType::Best :
|
||||||
return tr("Best Matches");
|
return tr("Best Matches");
|
||||||
|
case SearchItem::SearchType::Web :
|
||||||
|
return tr("Web Pages");
|
||||||
default :
|
default :
|
||||||
return tr("Unknown");
|
return tr("Unknown");
|
||||||
}
|
}
|
||||||
|
@ -684,6 +708,7 @@ void ContentWidget::setKeyword(QString keyword)
|
||||||
m_settingListView->setKeyword(keyword);
|
m_settingListView->setKeyword(keyword);
|
||||||
m_appListView->setKeyword(keyword);
|
m_appListView->setKeyword(keyword);
|
||||||
m_bestListView->setKeyword(keyword);
|
m_bestListView->setKeyword(keyword);
|
||||||
|
m_webListView->setKeyword(keyword);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -72,12 +72,14 @@ private:
|
||||||
SearchListView * m_settingListView = nullptr;
|
SearchListView * m_settingListView = nullptr;
|
||||||
SearchListView * m_appListView = nullptr;
|
SearchListView * m_appListView = nullptr;
|
||||||
SearchListView * m_bestListView = nullptr;
|
SearchListView * m_bestListView = nullptr;
|
||||||
|
SearchListView * m_webListView = nullptr;
|
||||||
TitleLabel * m_fileTitleLabel = nullptr;
|
TitleLabel * m_fileTitleLabel = nullptr;
|
||||||
TitleLabel * m_dirTitleLabel = nullptr;
|
TitleLabel * m_dirTitleLabel = nullptr;
|
||||||
TitleLabel * m_contentTitleLabel = nullptr;
|
TitleLabel * m_contentTitleLabel = nullptr;
|
||||||
TitleLabel * m_appTitleLabel = nullptr;
|
TitleLabel * m_appTitleLabel = nullptr;
|
||||||
TitleLabel * m_settingTitleLabel = nullptr;
|
TitleLabel * m_settingTitleLabel = nullptr;
|
||||||
TitleLabel * m_bestTitleLabel = nullptr;
|
TitleLabel * m_bestTitleLabel = nullptr;
|
||||||
|
TitleLabel * m_webTitleLabel = nullptr;
|
||||||
ShowMoreLabel * m_appShowMoreLabel = nullptr;
|
ShowMoreLabel * m_appShowMoreLabel = nullptr;
|
||||||
ShowMoreLabel * m_settingShowMoreLabel = nullptr;
|
ShowMoreLabel * m_settingShowMoreLabel = nullptr;
|
||||||
ShowMoreLabel * m_dirShowMoreLabel = nullptr;
|
ShowMoreLabel * m_dirShowMoreLabel = nullptr;
|
||||||
|
|
|
@ -77,6 +77,11 @@ void SearchDetailView::clearLayout() {
|
||||||
m_hLine_2->hide();
|
m_hLine_2->hide();
|
||||||
m_optionView->hide();
|
m_optionView->hide();
|
||||||
m_isEmpty = true;
|
m_isEmpty = true;
|
||||||
|
if (m_webView) {
|
||||||
|
m_webView->close();
|
||||||
|
m_webView = NULL;
|
||||||
|
}
|
||||||
|
// m_reload = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,18 +116,53 @@ int SearchDetailView::getType()
|
||||||
* @brief SearchDetailView::setWebWidget 显示为网页
|
* @brief SearchDetailView::setWebWidget 显示为网页
|
||||||
* @param keyword 关键词
|
* @param keyword 关键词
|
||||||
*/
|
*/
|
||||||
//void SearchDetailView::setWebWidget(const QString& keyword)
|
void SearchDetailView::setWebWidget(const QString& keyword)
|
||||||
//{
|
{
|
||||||
// QWebEngineView * m_webView = new QWebEngineView(this);
|
clearLayout();
|
||||||
// m_webView->move(0, 0);
|
m_isEmpty = false;
|
||||||
// m_webView->setFixedSize(360, 522);
|
m_reload = false;
|
||||||
// m_isEmpty = false;
|
m_webView = new QWebEngineView(this);
|
||||||
// clearLayout();
|
//如果使用非手机版百度跳转,请使用RequestInterceptor类
|
||||||
|
// RequestInterceptor * interceptor = new RequestInterceptor(m_webView);
|
||||||
|
// QWebEngineProfile * profile = new QWebEngineProfile(m_webView);
|
||||||
|
// profile->setRequestInterceptor(interceptor);
|
||||||
|
// QWebEnginePage * page = new QWebEnginePage(profile, m_webView);
|
||||||
|
// m_webView->setPage(page);
|
||||||
|
m_webView->settings()->setAttribute(QWebEngineSettings::PluginsEnabled, true);
|
||||||
|
m_webView->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
m_webView->move(0, 0);
|
||||||
|
m_webView->setFixedSize(360, 522);
|
||||||
|
|
||||||
// QString str = "http://m.baidu.com/s?word=" + keyword;
|
connect(m_webView,&QWebEngineView::loadFinished, this, [ = ](){
|
||||||
// m_webView->load(str);
|
m_reload = true;
|
||||||
// m_webView->show();
|
});
|
||||||
//}
|
connect(m_webView, &QWebEngineView::urlChanged, this, [ = ](const QUrl& url) {
|
||||||
|
if (m_reload) {
|
||||||
|
m_webView->close();
|
||||||
|
m_webView = NULL;
|
||||||
|
QDesktopServices::openUrl(url);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
QString address;
|
||||||
|
QString engine = GlobalSettings::getInstance()->getValue(WEB_ENGINE).toString();
|
||||||
|
if (!engine.isEmpty()) {
|
||||||
|
if (engine == "360") {
|
||||||
|
address = "https://m.so.com/s?q=" + keyword; //360
|
||||||
|
} else if (engine == "sougou") {
|
||||||
|
address = "https://wap.sogou.com/web/searchList.jsp?&keyword=" + keyword; //搜狗
|
||||||
|
} else {
|
||||||
|
address = "http://m.baidu.com/s?word=" + keyword; //百度
|
||||||
|
}
|
||||||
|
} else { //默认值
|
||||||
|
address = "http://m.baidu.com/s?word=" + keyword; //百度
|
||||||
|
}
|
||||||
|
// QString str = "http://m.baidu.com/s?word=" + keyword; //百度
|
||||||
|
// QString str = "https://m.so.com/s?q=" + keyword; //360
|
||||||
|
// QString str = "https://wap.sogou.com/web/searchList.jsp?&keyword=" + keyword; //搜狗
|
||||||
|
|
||||||
|
m_webView->load(address);
|
||||||
|
m_webView->show();
|
||||||
|
}
|
||||||
|
|
||||||
QString SearchDetailView::getHtmlText(const QString & text, const QString & keyword) {
|
QString SearchDetailView::getHtmlText(const QString & text, const QString & keyword) {
|
||||||
QString htmlString;
|
QString htmlString;
|
||||||
|
@ -430,8 +470,6 @@ void SearchDetailView::initUI()
|
||||||
|
|
||||||
m_layout->addStretch();
|
m_layout->addStretch();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this->clearLayout(); //初始化时隐藏所有控件
|
this->clearLayout(); //初始化时隐藏所有控件
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -513,3 +551,14 @@ void SearchDetailView::paintEvent(QPaintEvent *event) {
|
||||||
p.drawRoundedRect(rect, 4, 4);
|
p.drawRoundedRect(rect, 4, 4);
|
||||||
return QWidget::paintEvent(event);
|
return QWidget::paintEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief RequestInterceptor::interceptRequest 拦截qwebengineview的Url请求
|
||||||
|
* @param info
|
||||||
|
*/
|
||||||
|
//void RequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
|
||||||
|
//{
|
||||||
|
//当使用PC版搜索引擎时,可以使用此方法获取用户点击的链接的url
|
||||||
|
// QUrl url = info.requestUrl();
|
||||||
|
// qDebug() <<"Request URL:" <<url;
|
||||||
|
//}
|
||||||
|
|
|
@ -22,8 +22,13 @@
|
||||||
#define SEARCHDETAILVIEW_H
|
#define SEARCHDETAILVIEW_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
//#include <QWebEngineView>
|
#include <QWebEngineView>
|
||||||
|
#include <QWebEngineSettings>
|
||||||
|
//#include <QWebEngineProfile>
|
||||||
|
//#include <QWebEngineUrlRequestInterceptor>
|
||||||
|
#include <QDesktopServices>
|
||||||
#include "option-view.h"
|
#include "option-view.h"
|
||||||
|
#include "global-settings.h"
|
||||||
|
|
||||||
class SearchDetailView : public QWidget
|
class SearchDetailView : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -38,7 +43,7 @@ public:
|
||||||
bool isEmpty();
|
bool isEmpty();
|
||||||
int getType();
|
int getType();
|
||||||
bool isContent = false;
|
bool isContent = false;
|
||||||
// void setWebWidget(const QString&);
|
void setWebWidget(const QString&);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *);
|
||||||
|
@ -80,10 +85,21 @@ private:
|
||||||
QFrame * m_hLine_2 = nullptr;
|
QFrame * m_hLine_2 = nullptr;
|
||||||
OptionView * m_optionView = nullptr;
|
OptionView * m_optionView = nullptr;
|
||||||
|
|
||||||
|
QWebEngineView * m_webView = nullptr;
|
||||||
|
bool m_reload = false;
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void configFileChanged();
|
void configFileChanged();
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void execActions(const int&, const int&, const QString&);
|
void execActions(const int&, const int&, const QString&);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//此类用于url拦截
|
||||||
|
//class RequestInterceptor : public QWebEngineUrlRequestInterceptor
|
||||||
|
//{
|
||||||
|
//public:
|
||||||
|
// explicit RequestInterceptor(QObject * parent = nullptr) : QWebEngineUrlRequestInterceptor(parent) {}
|
||||||
|
// virtual void interceptRequest(QWebEngineUrlRequestInfo & info) Q_DECL_OVERRIDE;
|
||||||
|
//};
|
||||||
|
|
||||||
#endif // SEARCHDETAILVIEW_H
|
#endif // SEARCHDETAILVIEW_H
|
||||||
|
|
|
@ -149,6 +149,8 @@ int SearchListView::getCurrentType() {
|
||||||
case SearchItem::SearchType::Contents:
|
case SearchItem::SearchType::Contents:
|
||||||
// qDebug()<<"qDebug: One row selected, its type is content.";
|
// qDebug()<<"qDebug: One row selected, its type is content.";
|
||||||
return ResType::Content;
|
return ResType::Content;
|
||||||
|
case SearchItem::SearchType::Web:
|
||||||
|
return ResType::Web;
|
||||||
default: //All或者Best的情况,需要自己判断文件类型
|
default: //All或者Best的情况,需要自己判断文件类型
|
||||||
return getResType(m_item->m_pathlist.at(this->currentIndex().row()));
|
return getResType(m_item->m_pathlist.at(this->currentIndex().row()));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -40,7 +40,8 @@ public:
|
||||||
Setting,
|
Setting,
|
||||||
Dir,
|
Dir,
|
||||||
File,
|
File,
|
||||||
Content
|
Content,
|
||||||
|
Web
|
||||||
};
|
};
|
||||||
|
|
||||||
int getCurrentType();
|
int getCurrentType();
|
||||||
|
|
|
@ -41,7 +41,8 @@ public:
|
||||||
Settings,
|
Settings,
|
||||||
Dirs,
|
Dirs,
|
||||||
Files,
|
Files,
|
||||||
Contents
|
Contents,
|
||||||
|
Web
|
||||||
};
|
};
|
||||||
|
|
||||||
void setSearchList(const int&, const QStringList&);
|
void setSearchList(const int&, const QStringList&);
|
||||||
|
|
|
@ -40,6 +40,7 @@ SettingsWidget::SettingsWidget(QWidget *parent) : QDialog(parent)
|
||||||
initUi();
|
initUi();
|
||||||
refreshIndexState();
|
refreshIndexState();
|
||||||
setupBlackList(GlobalSettings::getInstance()->getBlockDirs());
|
setupBlackList(GlobalSettings::getInstance()->getBlockDirs());
|
||||||
|
resetWebEngine();
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsWidget::~SettingsWidget()
|
SettingsWidget::~SettingsWidget()
|
||||||
|
@ -170,12 +171,25 @@ void SettingsWidget::initUi() {
|
||||||
m_engineBtnGroup->addButton(m_baiduBtn);
|
m_engineBtnGroup->addButton(m_baiduBtn);
|
||||||
m_engineBtnGroup->addButton(m_sougouBtn);
|
m_engineBtnGroup->addButton(m_sougouBtn);
|
||||||
m_engineBtnGroup->addButton(m_360Btn);
|
m_engineBtnGroup->addButton(m_360Btn);
|
||||||
|
// m_engineBtnGroup->setId(m_baiduBtn, WebEngine::Baidu);
|
||||||
|
// m_engineBtnGroup->setId(m_sougouBtn, WebEngine::Sougou);
|
||||||
|
// m_engineBtnGroup->setId(m_360Btn, WebEngine::_360);
|
||||||
|
// connect(m_engineBtnGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), [ = ] (int id) {
|
||||||
|
// setWebEngine(id);
|
||||||
|
// });
|
||||||
|
connect(m_baiduBtn, &QRadioButton::clicked, [ = ] (bool checked) {
|
||||||
|
if (checked) setWebEngine("baidu");
|
||||||
|
});
|
||||||
|
connect(m_sougouBtn, &QRadioButton::clicked, [ = ] (bool checked) {
|
||||||
|
if (checked) setWebEngine("sougou");
|
||||||
|
});
|
||||||
|
connect(m_360Btn, &QRadioButton::clicked, [ = ] (bool checked) {
|
||||||
|
if (checked) setWebEngine("360");
|
||||||
|
});
|
||||||
|
|
||||||
m_mainLyt->addWidget(m_searchEngineLabel);
|
m_mainLyt->addWidget(m_searchEngineLabel);
|
||||||
m_mainLyt->addWidget(m_engineDescLabel);
|
m_mainLyt->addWidget(m_engineDescLabel);
|
||||||
m_mainLyt->addWidget(m_radioBtnFrame);
|
m_mainLyt->addWidget(m_radioBtnFrame);
|
||||||
m_searchEngineLabel->hide();
|
|
||||||
m_engineDescLabel->hide();
|
|
||||||
m_radioBtnFrame->hide();
|
|
||||||
|
|
||||||
//取消与确认按钮 (隐藏)
|
//取消与确认按钮 (隐藏)
|
||||||
// m_bottomBtnFrame = new QFrame(this);
|
// m_bottomBtnFrame = new QFrame(this);
|
||||||
|
@ -289,6 +303,36 @@ void SettingsWidget::onBtnDelClicked(const QString& path) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SettingsWidget::resetWebEngine 获取当前的搜索引擎并反应在UI控件上
|
||||||
|
*/
|
||||||
|
void SettingsWidget::resetWebEngine()
|
||||||
|
{
|
||||||
|
QString engine = GlobalSettings::getInstance()->getValue(WEB_ENGINE).toString();
|
||||||
|
m_engineBtnGroup->blockSignals(true);
|
||||||
|
if (!engine.isEmpty()) {
|
||||||
|
if (engine == "360") {
|
||||||
|
m_360Btn->setChecked(true);
|
||||||
|
} else if (engine == "sougou") {
|
||||||
|
m_sougouBtn->setChecked(true);
|
||||||
|
} else {
|
||||||
|
m_baiduBtn->setChecked(true);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
m_baiduBtn->setChecked(true);
|
||||||
|
}
|
||||||
|
m_engineBtnGroup->blockSignals(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SettingsWidget::setWebEngine
|
||||||
|
* @param engine 选择的搜索引擎
|
||||||
|
*/
|
||||||
|
void SettingsWidget::setWebEngine(const QString& engine)
|
||||||
|
{
|
||||||
|
GlobalSettings::getInstance()->setValue(WEB_ENGINE, engine);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief setIndexState 设置当前索引状态
|
* @brief setIndexState 设置当前索引状态
|
||||||
* @param isCreatingIndex 是否正在创建索引
|
* @param isCreatingIndex 是否正在创建索引
|
||||||
|
@ -432,13 +476,13 @@ void SettingsWidget::resize()
|
||||||
// this->setFixedSize(528, 515);
|
// this->setFixedSize(528, 515);
|
||||||
// }
|
// }
|
||||||
if (m_blockdirs <= 4) {
|
if (m_blockdirs <= 4) {
|
||||||
m_dirListArea->setFixedHeight(32 * m_blockdirs + 5);
|
m_dirListArea->setFixedHeight(32 * m_blockdirs);
|
||||||
m_dirListWidget->setFixedHeight(32 * m_blockdirs);
|
m_dirListWidget->setFixedHeight(32 * m_blockdirs);
|
||||||
} else {
|
} else {
|
||||||
m_dirListWidget->setFixedHeight(32 * m_blockdirs + 5);
|
m_dirListWidget->setFixedHeight(32 * m_blockdirs);
|
||||||
m_dirListArea->setFixedHeight(32 * 4);
|
m_dirListArea->setFixedHeight(32 * 4);
|
||||||
}
|
}
|
||||||
this->setFixedSize(528, 455);
|
this->setFixedSize(528, 410 + m_dirListArea->height());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -52,6 +52,7 @@ private:
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *);
|
||||||
void resize();
|
void resize();
|
||||||
void showWarningDialog(const int&);
|
void showWarningDialog(const int&);
|
||||||
|
void resetWebEngine();
|
||||||
//标题栏
|
//标题栏
|
||||||
QVBoxLayout * m_mainLyt = nullptr;
|
QVBoxLayout * m_mainLyt = nullptr;
|
||||||
QFrame * m_titleFrame = nullptr;
|
QFrame * m_titleFrame = nullptr;
|
||||||
|
@ -107,6 +108,7 @@ private Q_SLOTS:
|
||||||
// void onBtnCancelClicked();
|
// void onBtnCancelClicked();
|
||||||
void onBtnAddClicked();
|
void onBtnAddClicked();
|
||||||
void onBtnDelClicked(const QString&);
|
void onBtnDelClicked(const QString&);
|
||||||
|
void setWebEngine(const QString&);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SETTINGSWIDGET_H
|
#endif // SETTINGSWIDGET_H
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
QT += core gui dbus KWindowSystem xml x11extras
|
QT += core gui dbus KWindowSystem xml x11extras webenginewidgets
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
|
|
|
@ -4,52 +4,57 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ContentWidget</name>
|
<name>ContentWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="328"/>
|
<location filename="../../src/content-widget.cpp" line="354"/>
|
||||||
<source>Recently Opened</source>
|
<source>Recently Opened</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="359"/>
|
<location filename="../../src/content-widget.cpp" line="390"/>
|
||||||
<source>Open Quickly</source>
|
<source>Open Quickly</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="360"/>
|
<location filename="../../src/content-widget.cpp" line="391"/>
|
||||||
<source>Commonly Used</source>
|
<source>Commonly Used</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="602"/>
|
<location filename="../../src/content-widget.cpp" line="653"/>
|
||||||
<source>Apps</source>
|
<source>Apps</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="604"/>
|
<location filename="../../src/content-widget.cpp" line="655"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="606"/>
|
<location filename="../../src/content-widget.cpp" line="657"/>
|
||||||
<source>Files</source>
|
<source>Files</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="608"/>
|
<location filename="../../src/content-widget.cpp" line="659"/>
|
||||||
<source>Dirs</source>
|
<source>Dirs</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="610"/>
|
<location filename="../../src/content-widget.cpp" line="661"/>
|
||||||
<source>File Contents</source>
|
<source>File Contents</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="612"/>
|
<location filename="../../src/content-widget.cpp" line="663"/>
|
||||||
<source>Best Matches</source>
|
<source>Best Matches</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="614"/>
|
<location filename="../../src/content-widget.cpp" line="665"/>
|
||||||
|
<source>Web Pages</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../src/content-widget.cpp" line="667"/>
|
||||||
<source>Unknown</source>
|
<source>Unknown</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -83,27 +88,27 @@
|
||||||
<context>
|
<context>
|
||||||
<name>OptionView</name>
|
<name>OptionView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="95"/>
|
<location filename="../../src/control/option-view.cpp" line="96"/>
|
||||||
<source>Open</source>
|
<source>Open</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="102"/>
|
<location filename="../../src/control/option-view.cpp" line="103"/>
|
||||||
<source>Add Shortcut to Desktop</source>
|
<source>Add Shortcut to Desktop</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="109"/>
|
<location filename="../../src/control/option-view.cpp" line="110"/>
|
||||||
<source>Add Shortcut to Panel</source>
|
<source>Add Shortcut to Panel</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="116"/>
|
<location filename="../../src/control/option-view.cpp" line="117"/>
|
||||||
<source>Open path</source>
|
<source>Open path</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="123"/>
|
<location filename="../../src/control/option-view.cpp" line="124"/>
|
||||||
<source>Copy path</source>
|
<source>Copy path</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -127,22 +132,22 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SearchDetailView</name>
|
<name>SearchDetailView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="400"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="406"/>
|
||||||
<source>Path</source>
|
<source>Path</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="408"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="414"/>
|
||||||
<source>Last time modified</source>
|
<source>Last time modified</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="232"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="236"/>
|
||||||
<source>Application</source>
|
<source>Application</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="248"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="253"/>
|
||||||
<source>Document</source>
|
<source>Document</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -307,33 +312,33 @@
|
||||||
<name>ShowMoreLabel</name>
|
<name>ShowMoreLabel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="40"/>
|
<location filename="../../src/control/show-more-label.cpp" line="40"/>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="48"/>
|
<location filename="../../src/control/show-more-label.cpp" line="57"/>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="78"/>
|
<location filename="../../src/control/show-more-label.cpp" line="87"/>
|
||||||
<source>Show More...</source>
|
<source>Show More...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="76"/>
|
<location filename="../../src/control/show-more-label.cpp" line="85"/>
|
||||||
<source>Retract</source>
|
<source>Retract</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="87"/>
|
<location filename="../../src/control/show-more-label.cpp" line="96"/>
|
||||||
<source>Loading</source>
|
<source>Loading</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="92"/>
|
<location filename="../../src/control/show-more-label.cpp" line="101"/>
|
||||||
<source>Loading.</source>
|
<source>Loading.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="97"/>
|
<location filename="../../src/control/show-more-label.cpp" line="106"/>
|
||||||
<source>Loading..</source>
|
<source>Loading..</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="102"/>
|
<location filename="../../src/control/show-more-label.cpp" line="111"/>
|
||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -4,52 +4,57 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ContentWidget</name>
|
<name>ContentWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="328"/>
|
<location filename="../../src/content-widget.cpp" line="354"/>
|
||||||
<source>Recently Opened</source>
|
<source>Recently Opened</source>
|
||||||
<translation>Yeni Açılan</translation>
|
<translation>Yeni Açılan</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="359"/>
|
<location filename="../../src/content-widget.cpp" line="390"/>
|
||||||
<source>Open Quickly</source>
|
<source>Open Quickly</source>
|
||||||
<translation>Hızlı Aç</translation>
|
<translation>Hızlı Aç</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="360"/>
|
<location filename="../../src/content-widget.cpp" line="391"/>
|
||||||
<source>Commonly Used</source>
|
<source>Commonly Used</source>
|
||||||
<translation>Genel olarak kullanılan</translation>
|
<translation>Genel olarak kullanılan</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="602"/>
|
<location filename="../../src/content-widget.cpp" line="653"/>
|
||||||
<source>Apps</source>
|
<source>Apps</source>
|
||||||
<translation>Uygulamalar</translation>
|
<translation>Uygulamalar</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="604"/>
|
<location filename="../../src/content-widget.cpp" line="655"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>Ayarlar</translation>
|
<translation>Ayarlar</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="606"/>
|
<location filename="../../src/content-widget.cpp" line="657"/>
|
||||||
<source>Files</source>
|
<source>Files</source>
|
||||||
<translation>Dosyalar</translation>
|
<translation>Dosyalar</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="608"/>
|
<location filename="../../src/content-widget.cpp" line="659"/>
|
||||||
<source>Dirs</source>
|
<source>Dirs</source>
|
||||||
<translation>Dizinler</translation>
|
<translation>Dizinler</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="610"/>
|
<location filename="../../src/content-widget.cpp" line="661"/>
|
||||||
<source>File Contents</source>
|
<source>File Contents</source>
|
||||||
<translation>Dosya İçeriği</translation>
|
<translation>Dosya İçeriği</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="612"/>
|
<location filename="../../src/content-widget.cpp" line="663"/>
|
||||||
<source>Best Matches</source>
|
<source>Best Matches</source>
|
||||||
<translation>En İyi Eşleşen</translation>
|
<translation>En İyi Eşleşen</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="614"/>
|
<location filename="../../src/content-widget.cpp" line="665"/>
|
||||||
|
<source>Web Pages</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../src/content-widget.cpp" line="667"/>
|
||||||
<source>Unknown</source>
|
<source>Unknown</source>
|
||||||
<translation>Bilinmeyen</translation>
|
<translation>Bilinmeyen</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -83,27 +88,27 @@
|
||||||
<context>
|
<context>
|
||||||
<name>OptionView</name>
|
<name>OptionView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="95"/>
|
<location filename="../../src/control/option-view.cpp" line="96"/>
|
||||||
<source>Open</source>
|
<source>Open</source>
|
||||||
<translation>Aç</translation>
|
<translation>Aç</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="102"/>
|
<location filename="../../src/control/option-view.cpp" line="103"/>
|
||||||
<source>Add Shortcut to Desktop</source>
|
<source>Add Shortcut to Desktop</source>
|
||||||
<translation>Masaüstüne Kısayol Ekle</translation>
|
<translation>Masaüstüne Kısayol Ekle</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="109"/>
|
<location filename="../../src/control/option-view.cpp" line="110"/>
|
||||||
<source>Add Shortcut to Panel</source>
|
<source>Add Shortcut to Panel</source>
|
||||||
<translation>Panele Kısayol Ekle</translation>
|
<translation>Panele Kısayol Ekle</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="116"/>
|
<location filename="../../src/control/option-view.cpp" line="117"/>
|
||||||
<source>Open path</source>
|
<source>Open path</source>
|
||||||
<translation>Yolu aç</translation>
|
<translation>Yolu aç</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="123"/>
|
<location filename="../../src/control/option-view.cpp" line="124"/>
|
||||||
<source>Copy path</source>
|
<source>Copy path</source>
|
||||||
<translation>Yolu kopyala</translation>
|
<translation>Yolu kopyala</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -127,22 +132,22 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SearchDetailView</name>
|
<name>SearchDetailView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="400"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="406"/>
|
||||||
<source>Path</source>
|
<source>Path</source>
|
||||||
<translation>Yol</translation>
|
<translation>Yol</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="408"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="414"/>
|
||||||
<source>Last time modified</source>
|
<source>Last time modified</source>
|
||||||
<translation>Son değiştirilme zamanı</translation>
|
<translation>Son değiştirilme zamanı</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="232"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="236"/>
|
||||||
<source>Application</source>
|
<source>Application</source>
|
||||||
<translation>Uygulama</translation>
|
<translation>Uygulama</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="248"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="253"/>
|
||||||
<source>Document</source>
|
<source>Document</source>
|
||||||
<translation>Belge</translation>
|
<translation>Belge</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -307,33 +312,33 @@
|
||||||
<name>ShowMoreLabel</name>
|
<name>ShowMoreLabel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="40"/>
|
<location filename="../../src/control/show-more-label.cpp" line="40"/>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="48"/>
|
<location filename="../../src/control/show-more-label.cpp" line="57"/>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="78"/>
|
<location filename="../../src/control/show-more-label.cpp" line="87"/>
|
||||||
<source>Show More...</source>
|
<source>Show More...</source>
|
||||||
<translation>Daha Fazla Göster...</translation>
|
<translation>Daha Fazla Göster...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="76"/>
|
<location filename="../../src/control/show-more-label.cpp" line="85"/>
|
||||||
<source>Retract</source>
|
<source>Retract</source>
|
||||||
<translation>Geri çek</translation>
|
<translation>Geri çek</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="87"/>
|
<location filename="../../src/control/show-more-label.cpp" line="96"/>
|
||||||
<source>Loading</source>
|
<source>Loading</source>
|
||||||
<translation>Yükleniyor</translation>
|
<translation>Yükleniyor</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="92"/>
|
<location filename="../../src/control/show-more-label.cpp" line="101"/>
|
||||||
<source>Loading.</source>
|
<source>Loading.</source>
|
||||||
<translation>Yükleniyor.</translation>
|
<translation>Yükleniyor.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="97"/>
|
<location filename="../../src/control/show-more-label.cpp" line="106"/>
|
||||||
<source>Loading..</source>
|
<source>Loading..</source>
|
||||||
<translation>Yükleniyor..</translation>
|
<translation>Yükleniyor..</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="102"/>
|
<location filename="../../src/control/show-more-label.cpp" line="111"/>
|
||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation>Yükleniyor...</translation>
|
<translation>Yükleniyor...</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -4,52 +4,57 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ContentWidget</name>
|
<name>ContentWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="328"/>
|
<location filename="../../src/content-widget.cpp" line="354"/>
|
||||||
<source>Recently Opened</source>
|
<source>Recently Opened</source>
|
||||||
<translation>最近</translation>
|
<translation>最近</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="359"/>
|
<location filename="../../src/content-widget.cpp" line="390"/>
|
||||||
<source>Open Quickly</source>
|
<source>Open Quickly</source>
|
||||||
<translation>快速</translation>
|
<translation>快速</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="360"/>
|
<location filename="../../src/content-widget.cpp" line="391"/>
|
||||||
<source>Commonly Used</source>
|
<source>Commonly Used</source>
|
||||||
<translation>常用</translation>
|
<translation>常用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="602"/>
|
<location filename="../../src/content-widget.cpp" line="653"/>
|
||||||
<source>Apps</source>
|
<source>Apps</source>
|
||||||
<translation>应用</translation>
|
<translation>应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="604"/>
|
<location filename="../../src/content-widget.cpp" line="655"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>配置项</translation>
|
<translation>配置项</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="606"/>
|
<location filename="../../src/content-widget.cpp" line="657"/>
|
||||||
<source>Files</source>
|
<source>Files</source>
|
||||||
<translation>文件</translation>
|
<translation>文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="608"/>
|
<location filename="../../src/content-widget.cpp" line="659"/>
|
||||||
<source>Dirs</source>
|
<source>Dirs</source>
|
||||||
<translation>文件夹</translation>
|
<translation>文件夹</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="610"/>
|
<location filename="../../src/content-widget.cpp" line="661"/>
|
||||||
<source>File Contents</source>
|
<source>File Contents</source>
|
||||||
<translation>文件内容</translation>
|
<translation>文件内容</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="612"/>
|
<location filename="../../src/content-widget.cpp" line="663"/>
|
||||||
<source>Best Matches</source>
|
<source>Best Matches</source>
|
||||||
<translation>最佳匹配</translation>
|
<translation>最佳匹配</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/content-widget.cpp" line="614"/>
|
<location filename="../../src/content-widget.cpp" line="665"/>
|
||||||
|
<source>Web Pages</source>
|
||||||
|
<translation>网页</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../src/content-widget.cpp" line="667"/>
|
||||||
<source>Unknown</source>
|
<source>Unknown</source>
|
||||||
<translation>未知</translation>
|
<translation>未知</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -83,27 +88,27 @@
|
||||||
<context>
|
<context>
|
||||||
<name>OptionView</name>
|
<name>OptionView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="95"/>
|
<location filename="../../src/control/option-view.cpp" line="96"/>
|
||||||
<source>Open</source>
|
<source>Open</source>
|
||||||
<translation>打开</translation>
|
<translation>打开</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="102"/>
|
<location filename="../../src/control/option-view.cpp" line="103"/>
|
||||||
<source>Add Shortcut to Desktop</source>
|
<source>Add Shortcut to Desktop</source>
|
||||||
<translation>添加到桌面快捷方式</translation>
|
<translation>添加到桌面快捷方式</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="109"/>
|
<location filename="../../src/control/option-view.cpp" line="110"/>
|
||||||
<source>Add Shortcut to Panel</source>
|
<source>Add Shortcut to Panel</source>
|
||||||
<translation>添加到任务栏快捷方式</translation>
|
<translation>添加到任务栏快捷方式</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="116"/>
|
<location filename="../../src/control/option-view.cpp" line="117"/>
|
||||||
<source>Open path</source>
|
<source>Open path</source>
|
||||||
<translation>打开文件所在路径</translation>
|
<translation>打开文件所在路径</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/option-view.cpp" line="123"/>
|
<location filename="../../src/control/option-view.cpp" line="124"/>
|
||||||
<source>Copy path</source>
|
<source>Copy path</source>
|
||||||
<translation>复制文件路径</translation>
|
<translation>复制文件路径</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -127,22 +132,22 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SearchDetailView</name>
|
<name>SearchDetailView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="400"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="406"/>
|
||||||
<source>Path</source>
|
<source>Path</source>
|
||||||
<translation>路径</translation>
|
<translation>路径</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="408"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="414"/>
|
||||||
<source>Last time modified</source>
|
<source>Last time modified</source>
|
||||||
<translation>上次修改时间</translation>
|
<translation>上次修改时间</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="232"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="236"/>
|
||||||
<source>Application</source>
|
<source>Application</source>
|
||||||
<translation>应用</translation>
|
<translation>应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/search-detail-view.cpp" line="248"/>
|
<location filename="../../src/control/search-detail-view.cpp" line="253"/>
|
||||||
<source>Document</source>
|
<source>Document</source>
|
||||||
<translation>文件</translation>
|
<translation>文件</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -307,33 +312,33 @@
|
||||||
<name>ShowMoreLabel</name>
|
<name>ShowMoreLabel</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="40"/>
|
<location filename="../../src/control/show-more-label.cpp" line="40"/>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="48"/>
|
<location filename="../../src/control/show-more-label.cpp" line="57"/>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="78"/>
|
<location filename="../../src/control/show-more-label.cpp" line="87"/>
|
||||||
<source>Show More...</source>
|
<source>Show More...</source>
|
||||||
<translation>显示更多...</translation>
|
<translation>显示更多...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="76"/>
|
<location filename="../../src/control/show-more-label.cpp" line="85"/>
|
||||||
<source>Retract</source>
|
<source>Retract</source>
|
||||||
<translation>收起</translation>
|
<translation>收起</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="87"/>
|
<location filename="../../src/control/show-more-label.cpp" line="96"/>
|
||||||
<source>Loading</source>
|
<source>Loading</source>
|
||||||
<translation>加载中</translation>
|
<translation>加载中</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="92"/>
|
<location filename="../../src/control/show-more-label.cpp" line="101"/>
|
||||||
<source>Loading.</source>
|
<source>Loading.</source>
|
||||||
<translation>加载中.</translation>
|
<translation>加载中.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="97"/>
|
<location filename="../../src/control/show-more-label.cpp" line="106"/>
|
||||||
<source>Loading..</source>
|
<source>Loading..</source>
|
||||||
<translation>加载中..</translation>
|
<translation>加载中..</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../src/control/show-more-label.cpp" line="102"/>
|
<location filename="../../src/control/show-more-label.cpp" line="111"/>
|
||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation>加载中...</translation>
|
<translation>加载中...</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in New Issue