From c71a08e2b44521590a3f48e6cd6b15394890b48f Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Fri, 12 Jun 2020 03:25:00 +0200 Subject: Fixes two overflow bugs in labels. No weird scaling based on links anymore. --- src/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') 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); -- cgit v1.2.3