Add informative labels in filename editor
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);});
|
||||
|
||||
Reference in New Issue
Block a user