mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 23:44:13 +02:00
Merge pull request #1165 from ispyisail/revive/691-dialog-geometry
Remember dialog sizes, and drop a light-grey box in dark themes
This commit is contained in:
@@ -20,12 +20,14 @@
|
||||
#include <QDate>
|
||||
#include "ui_renamedialog.h"
|
||||
|
||||
#include "../../qet.h"
|
||||
RenameDialog::RenameDialog(QString path, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::RenameDialog),
|
||||
m_path(std::move(path))
|
||||
{
|
||||
ui->setupUi(this);
|
||||
QET::trackDialogGeometry(this);
|
||||
m_name = m_path.split("/").last();
|
||||
if (m_name.endsWith(".elmt")) m_name.remove(".elmt");
|
||||
ui->m_label->setText(tr("L'élément « %1 » existe déjà. Que souhaitez-vous faire ?").arg(m_path));
|
||||
|
||||
Reference in New Issue
Block a user