From 41802000a0bcbb44c3add7f218eceec101f52cc0 Mon Sep 17 00:00:00 2001 From: am Date: Fri, 7 Aug 2009 19:53:55 +0000 Subject: -fixed sorting in ArchiveProxy: had to introduce two new fields to MovieModel: partno and seriesno -made changes to archiveviewiwdget.cpp and dialogs accordingly git-svn-id: file:///var/svn/repos2/shemov/trunk@400 f440f766-f032-0410-8965-dc7d17de2ca0 --- archivefilewidget.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'archivefilewidget.cpp') diff --git a/archivefilewidget.cpp b/archivefilewidget.cpp index bc68382..59447e1 100644 --- a/archivefilewidget.cpp +++ b/archivefilewidget.cpp @@ -83,6 +83,27 @@ ArchiveFileWidget::ArchiveFileWidget(MovieModel *model, QWidget *parent, Qt::Win qualityTitleLayout->addWidget(mTitle); mainLayout->addLayout(qualityTitleLayout); + //series number and part number + QHBoxLayout *numbersLayout = new QHBoxLayout; + QLabel *l6 = new QLabel(tr("Select &series number")); + mSeriesNo = new QSpinBox; + mSeriesNo->setMinimum(-1); + mSeriesNo->setMaximum(1000); + mSeriesNo->setValue(-1); + l6->setBuddy(mSeriesNo); + QLabel *l7 = new QLabel(tr("Select &part number")); + mPartNo = new QSpinBox; + mPartNo->setMinimum(-1); + mPartNo->setMaximum(100); + mPartNo->setValue(-1); + l7->setBuddy(mPartNo); + numbersLayout->addWidget(l6); + numbersLayout->addWidget(mSeriesNo); + numbersLayout->addWidget(l7); + numbersLayout->addWidget(mPartNo); + numbersLayout->addStretch(); + mainLayout->addLayout(numbersLayout); + setLayout(mainLayout); setMinimumWidth(600); } -- cgit v1.2.3-70-g09d2