Add informative labels in filename editor

This commit is contained in:
lupoDharkael
2017-08-08 17:59:29 +02:00
parent 8addcbfb16
commit 973818c466
3 changed files with 4 additions and 1 deletions

View File

@@ -34,7 +34,7 @@
ConfigWindow::ConfigWindow(QWidget *parent) : QTabWidget(parent) {
setAttribute(Qt::WA_DeleteOnClose);
setMinimumSize(395, 490);
setMinimumSize(400, 490);
setWindowIcon(QIcon(":img/flameshot.png"));
setWindowTitle(tr("Configuration"));

View File

@@ -36,7 +36,9 @@ void FileNameEditor::initLayout() {
infoLabel->setFixedHeight(20);
m_layout->addWidget(infoLabel);
m_layout->addWidget(m_helperButtons);
m_layout->addWidget(new QLabel(tr("Edit:")));
m_layout->addWidget(m_nameEditor);
m_layout->addWidget(new QLabel(tr("Preview:")));
m_layout->addWidget(m_outputLabel);
QHBoxLayout *horizLayout = new QHBoxLayout();

View File

@@ -34,6 +34,7 @@ StrftimeChooserWidget::StrftimeChooserWidget(QWidget *parent) : QWidget(parent)
button->setText(tr(key.toStdString().data()));
button->setToolTip(variable);
button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
button->setMinimumHeight(25);
layout->addWidget(button, j, i);
connect(button, &QPushButton::clicked,
this, [variable, this](){Q_EMIT variableEmitted(variable);});