mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
refine Chinese translations
This commit is contained in:
parent
b8a8ed974b
commit
507568ae2c
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -185,7 +185,7 @@ void VSearcher::setupUI()
|
||||
connect(m_cancelBtn, &QPushButton::clicked,
|
||||
this, [this]() {
|
||||
if (m_inSearch) {
|
||||
appendLogLine(tr("Cancelling the export..."));
|
||||
appendLogLine(tr("Cancelling the search..."));
|
||||
m_askedToStop = true;
|
||||
m_search.stop();
|
||||
}
|
||||
|
@ -7,10 +7,7 @@
|
||||
#include "vbuttonwithwidget.h"
|
||||
#include "vwordcountinfo.h"
|
||||
|
||||
class VWordCountPanel : public QWidget
|
||||
{
|
||||
public:
|
||||
VWordCountPanel(QWidget *p_parent)
|
||||
VWordCountPanel::VWordCountPanel(QWidget *p_parent)
|
||||
: QWidget(p_parent)
|
||||
{
|
||||
m_wordLabel = new QLabel();
|
||||
@ -56,7 +53,7 @@ public:
|
||||
setMinimumWidth(300);
|
||||
}
|
||||
|
||||
void updateReadInfo(const VWordCountInfo &p_readInfo)
|
||||
void VWordCountPanel::updateReadInfo(const VWordCountInfo &p_readInfo)
|
||||
{
|
||||
if (p_readInfo.isNull()) {
|
||||
m_wordLabel->clear();
|
||||
@ -69,7 +66,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void updateEditInfo(const VWordCountInfo &p_editInfo)
|
||||
void VWordCountPanel::updateEditInfo(const VWordCountInfo &p_editInfo)
|
||||
{
|
||||
if (p_editInfo.isNull()) {
|
||||
m_wordEditLabel->clear();
|
||||
@ -82,7 +79,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void clear()
|
||||
void VWordCountPanel::clear()
|
||||
{
|
||||
m_wordLabel->clear();
|
||||
m_charWithoutSpacesLabel->clear();
|
||||
@ -93,18 +90,6 @@ public:
|
||||
m_charWithSpacesEditLabel->clear();
|
||||
}
|
||||
|
||||
private:
|
||||
QLabel *m_wordLabel;
|
||||
QLabel *m_charWithoutSpacesLabel;
|
||||
QLabel *m_charWithSpacesLabel;
|
||||
|
||||
QLabel *m_wordEditLabel;
|
||||
QLabel *m_charWithoutSpacesEditLabel;
|
||||
QLabel *m_charWithSpacesEditLabel;
|
||||
|
||||
QGroupBox *m_readBox;
|
||||
QGroupBox *m_editBox;
|
||||
};
|
||||
|
||||
VTabIndicator::VTabIndicator(QWidget *p_parent)
|
||||
: QWidget(p_parent),
|
||||
|
@ -8,6 +8,33 @@ class QLabel;
|
||||
class VButtonWithWidget;
|
||||
class VEditTab;
|
||||
class VWordCountPanel;
|
||||
class QGroupBox;
|
||||
|
||||
class VWordCountPanel : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
VWordCountPanel(QWidget *p_parent = nullptr);
|
||||
|
||||
void updateReadInfo(const VWordCountInfo &p_readInfo);
|
||||
|
||||
void updateEditInfo(const VWordCountInfo &p_editInfo);
|
||||
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QLabel *m_wordLabel;
|
||||
QLabel *m_charWithoutSpacesLabel;
|
||||
QLabel *m_charWithSpacesLabel;
|
||||
|
||||
QLabel *m_wordEditLabel;
|
||||
QLabel *m_charWithoutSpacesEditLabel;
|
||||
QLabel *m_charWithSpacesEditLabel;
|
||||
|
||||
QGroupBox *m_readBox;
|
||||
QGroupBox *m_editBox;
|
||||
};
|
||||
|
||||
|
||||
class VTabIndicator : public QWidget
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user