Commit 81a1b751 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: split the track number/total for now

Close #8511
parent 3c778bde
...@@ -97,7 +97,7 @@ MetaPanel::MetaPanel( QWidget *parent, ...@@ -97,7 +97,7 @@ MetaPanel::MetaPanel( QWidget *parent,
date_text = new QLineEdit; date_text = new QLineEdit;
date_text->setAlignment( Qt::AlignRight ); date_text->setAlignment( Qt::AlignRight );
date_text->setInputMask("0000"); date_text->setInputMask("0000");
date_text->setMaximumWidth( 128 ); date_text->setMaximumWidth( 140 );
metaLayout->addWidget( date_text, line, 7, 1, -1 ); metaLayout->addWidget( date_text, line, 7, 1, -1 );
line++; line++;
...@@ -111,10 +111,16 @@ MetaPanel::MetaPanel( QWidget *parent, ...@@ -111,10 +111,16 @@ MetaPanel::MetaPanel( QWidget *parent,
metaLayout->addWidget( label, line - 1, 7, 1, 3 ); metaLayout->addWidget( label, line - 1, 7, 1, 3 );
tracknumber_text = new QLineEdit; tracknumber_text = new QLineEdit;
tracktotal_text = new QLineEdit;
tracknumber_text->setAlignment( Qt::AlignRight ); tracknumber_text->setAlignment( Qt::AlignRight );
tracknumber_text->setInputMask("0000/0000"); tracktotal_text->setAlignment( Qt::AlignRight );
tracknumber_text->setMaximumWidth( 128 ); tracknumber_text->setMaximumWidth( 64 );
metaLayout->addWidget( tracknumber_text, line, 7, 1, -1 ); tracktotal_text->setMaximumWidth( 64 );
metaLayout->addWidget( tracknumber_text, line, 7, 1, 1 );
metaLayout->addWidget( tracktotal_text, line, 9, 1, -1 );
QLabel *sep = new QLabel( "/" );
metaLayout->addWidget( sep, line, 8, 1, -1 );
line++; line++;
......
...@@ -75,6 +75,7 @@ private: ...@@ -75,6 +75,7 @@ private:
QLineEdit *copyright_text; QLineEdit *copyright_text;
QLineEdit *collection_text; QLineEdit *collection_text;
QLineEdit *tracknumber_text; QLineEdit *tracknumber_text;
QLineEdit *tracktotal_text;
QTextEdit *description_text; QTextEdit *description_text;
// QSpinBox *rating_text; // QSpinBox *rating_text;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment