aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-12 03:25:00 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-12 03:25:00 +0200
commitc71a08e2b44521590a3f48e6cd6b15394890b48f (patch)
treec7528b48c3a35166a91f0bb92f96acae5d009eee /src/mainwindow.cpp
parent0c57280c4eec7ddce569f89cb35de917d8b4d08e (diff)
downloadkristall-c71a08e2b44521590a3f48e6cd6b15394890b48f.tar.gz
Fixes two overflow bugs in labels. No weird scaling based on links anymore.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ec8af9c..1c0dc9e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -13,18 +13,20 @@
#include "ioutil.hpp"
#include "kristall.hpp"
+
MainWindow::MainWindow(QApplication * app, QWidget *parent) :
QMainWindow(parent),
application(app),
ui(new Ui::MainWindow),
- url_status(new QLabel(this)),
+ url_status(new ElideLabel(this)),
file_size(new QLabel(this)),
file_mime(new QLabel(this)),
load_time(new QLabel(this))
{
-
ui->setupUi(this);
+ this->url_status->setElideMode(Qt::ElideMiddle);
+
this->statusBar()->addWidget(this->url_status);
this->statusBar()->addPermanentWidget(this->file_mime);
this->statusBar()->addPermanentWidget(this->file_size);