aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/TextEdit.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-14 17:39:46 +0000
committerSaturneric <[email protected]>2021-07-14 17:39:46 +0000
commita8080780d812d455a2523fdf55f927a7c3f5fb63 (patch)
tree9dc8d2dcfc87a1d103c34e85f769d08d315ce88e /src/ui/widgets/TextEdit.cpp
parentUpdate Document. (diff)
parentMerge pull request #12 from saturneric/develop (diff)
downloadGpgFrontend-a8080780d812d455a2523fdf55f927a7c3f5fb63.tar.gz
GpgFrontend-a8080780d812d455a2523fdf55f927a7c3f5fb63.zip
Merge from github/main.
Diffstat (limited to '')
-rw-r--r--src/ui/widgets/TextEdit.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp
index f06b3a45..c9968565 100644
--- a/src/ui/widgets/TextEdit.cpp
+++ b/src/ui/widgets/TextEdit.cpp
@@ -37,9 +37,6 @@ TextEdit::TextEdit(QWidget *parent) : QWidget(parent) {
layout->setSpacing(0);
setLayout(layout);
- // Front in same width
- this->setFont({"Courier"});
-
connect(tabWidget, SIGNAL(tabCloseRequested(int)), this,
SLOT(removeTab(int)));
connect(this, &TextEdit::insertTargetTextPage, this,
@@ -73,7 +70,7 @@ void TextEdit::slotNewHelpTab(const QString &title, const QString &path) const {
void TextEdit::slotNewFileTab() const {
auto *page = new FilePage(qobject_cast<QWidget *>(parent()));
- tabWidget->addTab(page, "[File Browser]");
+ tabWidget->addTab(page, "[Browser]");
tabWidget->setCurrentIndex(tabWidget->count() - 1);
connect(page, SIGNAL(pathChanged(const QString &)), this,
SLOT(slotFilePagePathChanged(const QString &)));
@@ -646,7 +643,7 @@ void TextEdit::slotFilePagePathChanged(const QString &path) {
} else {
mPath = tPath;
}
- mPath.prepend("[File Browser] ");
+ mPath.prepend("[Browser] ");
mPath.append("/");
tabWidget->setTabText(index, mPath);
}