mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09: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,
|
connect(m_cancelBtn, &QPushButton::clicked,
|
||||||
this, [this]() {
|
this, [this]() {
|
||||||
if (m_inSearch) {
|
if (m_inSearch) {
|
||||||
appendLogLine(tr("Cancelling the export..."));
|
appendLogLine(tr("Cancelling the search..."));
|
||||||
m_askedToStop = true;
|
m_askedToStop = true;
|
||||||
m_search.stop();
|
m_search.stop();
|
||||||
}
|
}
|
||||||
|
@ -7,10 +7,7 @@
|
|||||||
#include "vbuttonwithwidget.h"
|
#include "vbuttonwithwidget.h"
|
||||||
#include "vwordcountinfo.h"
|
#include "vwordcountinfo.h"
|
||||||
|
|
||||||
class VWordCountPanel : public QWidget
|
VWordCountPanel::VWordCountPanel(QWidget *p_parent)
|
||||||
{
|
|
||||||
public:
|
|
||||||
VWordCountPanel(QWidget *p_parent)
|
|
||||||
: QWidget(p_parent)
|
: QWidget(p_parent)
|
||||||
{
|
{
|
||||||
m_wordLabel = new QLabel();
|
m_wordLabel = new QLabel();
|
||||||
@ -56,7 +53,7 @@ public:
|
|||||||
setMinimumWidth(300);
|
setMinimumWidth(300);
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateReadInfo(const VWordCountInfo &p_readInfo)
|
void VWordCountPanel::updateReadInfo(const VWordCountInfo &p_readInfo)
|
||||||
{
|
{
|
||||||
if (p_readInfo.isNull()) {
|
if (p_readInfo.isNull()) {
|
||||||
m_wordLabel->clear();
|
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()) {
|
if (p_editInfo.isNull()) {
|
||||||
m_wordEditLabel->clear();
|
m_wordEditLabel->clear();
|
||||||
@ -82,7 +79,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear()
|
void VWordCountPanel::clear()
|
||||||
{
|
{
|
||||||
m_wordLabel->clear();
|
m_wordLabel->clear();
|
||||||
m_charWithoutSpacesLabel->clear();
|
m_charWithoutSpacesLabel->clear();
|
||||||
@ -93,18 +90,6 @@ public:
|
|||||||
m_charWithSpacesEditLabel->clear();
|
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)
|
VTabIndicator::VTabIndicator(QWidget *p_parent)
|
||||||
: QWidget(p_parent),
|
: QWidget(p_parent),
|
||||||
|
@ -8,6 +8,33 @@ class QLabel;
|
|||||||
class VButtonWithWidget;
|
class VButtonWithWidget;
|
||||||
class VEditTab;
|
class VEditTab;
|
||||||
class VWordCountPanel;
|
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
|
class VTabIndicator : public QWidget
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user