Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix Import Magpie File popup layout

manongjohn5095d26457fe
diff --git a/toonz/sources/toonz/magpiefileimportpopup.cpp b/toonz/sources/toonz/magpiefileimportpopup.cpp
index 72a90abcf..cf46c1ecf 100644
--- a/toonz/sources/toonz/magpiefileimportpopup.cpp
+++ b/toonz/sources/toonz/magpiefileimportpopup.cpp
@@ -57,7 +57,7 @@ MagpieFileImportPopup::MagpieFileImportPopup()
beginVLayout();
- setLabelWidth(45);
+ setLabelWidth(60);
addSeparator(tr("Frame Range"));
@@ -70,9 +70,9 @@ MagpieFileImportPopup::MagpieFileImportPopup()
m_fromField = new DVGui::IntLineEdit(fromToWidget, 1, 1, 1);
fromToLayout->addWidget(m_fromField, 0, Qt::AlignLeft);
m_toField = new DVGui::IntLineEdit(fromToWidget, 1, 1, 1);
- QLabel *toLabel = new QLabel(tr("To:"));
+ QLabel *toLabel = new QLabel(tr("To: "));
toLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
- toLabel->setFixedSize(20, m_toField->height());
+ toLabel->setFixedSize(20, DVGui::WidgetHeight);
fromToLayout->addWidget(toLabel, 0, Qt::AlignRight);
fromToLayout->addWidget(m_toField, 0, Qt::AlignLeft);
fromToWidget->setLayout(fromToLayout);
@@ -90,13 +90,15 @@ MagpieFileImportPopup::MagpieFileImportPopup()
QLabel *frameLabel = new QLabel(" Frame", this);
frameLabel->setFixedHeight(DVGui::WidgetHeight);
+ frameLabel->setAlignment(Qt::AlignVCenter);
addWidget(tr("Phoneme"), frameLabel);
int i;
for (i = 0; i < 9; i++) {
DVGui::IntLineEdit *field = new DVGui::IntLineEdit(this, 1, 1);
- QLabel *label = new QLabel("", this);
+ field->setFixedSize(54, DVGui::WidgetHeight);
+ QLabel *label = new QLabel("", this);
label->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
- label->setFixedSize(getLabelWidth(), field->height());
+ label->setFixedSize(getLabelWidth(), DVGui::WidgetHeight);
m_actFields.append(QPair<QLabel *, DVGui::IntLineEdit *>(label, field));
addWidgets(label, field);
}
@@ -171,7 +173,7 @@ void MagpieFileImportPopup::showEvent(QShowEvent *) {
QString act = actsIdentifier.at(i);
field->setProperty("act", QVariant(act));
field->show();
- label->setText(act);
+ label->setText(act + ":");
label->show();
}
QString oldLevelPath = m_levelField->getPath();