layout->addWidget(m_seekSlider);
ui->seekBar->addWidget(seekBarContents);
}
+ {
+ QWidget *timeBarContents = new QWidget(ui->timeBar);
+ timeLabel = new QLabel("0:00:00 / 0:00:00", timeBarContents);
+
+ QHBoxLayout *layout = new QHBoxLayout(timeBarContents);
+ layout->addWidget(timeLabel);
+ ui->timeBar->addWidget(timeBarContents);
+ }
+ {
+ QWidget *volumeBarContents = new QWidget(ui->timeBar);
+ m_volumeSlider = new Phonon::VolumeSlider(volumeBarContents);
+ m_volumeSlider->setMinimumWidth(50);
+
+ QHBoxLayout *layout = new QHBoxLayout(volumeBarContents);
+ layout->addWidget(m_volumeSlider);
+ ui->volumeBar->addWidget(volumeBarContents);
+ }
+
{
QWidget *playBarContents = new QWidget(ui->playBar);
m_oldSeekSlider = new Phonon::SeekSlider(playBarContents);
- m_volumeSlider = new Phonon::VolumeSlider(playBarContents);
-
m_oldSeekSlider->setMinimumWidth(100);
- m_volumeSlider->setMinimumWidth(50);
-
- timeLabel = new QLabel("0:00:00 / 0:00:00", this);
QHBoxLayout *layout = new QHBoxLayout(playBarContents);
layout->addWidget(m_oldSeekSlider, 5);
- layout->addWidget(timeLabel, 1);
- layout->addWidget(m_volumeSlider, 2);
+// layout->addWidget(timeLabel, 1);
+// layout->addWidget(m_volumeSlider, 2);
ui->playBar->addWidget(playBarContents);
}
+
setWindowTitle(tr("%1 Control Panel").arg(qApp->applicationName()));
totalTime = " / " + QTime(0, 0, 0, 0).toString("h:mm:ss");
<x>0</x>
<y>0</y>
<width>395</width>
- <height>77</height>
+ <height>79</height>
</rect>
</property>
<property name="minimumSize">
<bool>true</bool>
</attribute>
</widget>
+ <widget class="QToolBar" name="timeBar">
+ <property name="windowTitle">
+ <string>Time</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ </widget>
+ <widget class="QToolBar" name="volumeBar">
+ <property name="windowTitle">
+ <string>Volume</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ </widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
connect(m_media, SIGNAL(tick(qint64)), SLOT(tick(qint64)));
connect(m_media, SIGNAL(seekableChanged(bool)), SLOT(seekableChanged(bool)));
connect(m_media, SIGNAL(currentSourceChanged(const Phonon::MediaSource&)), SLOT(currentSourceChanged()));
- connect(this, SIGNAL(valueChanged(int)), SLOT(seek(int)));
stateChanged(m_media->state());
seekableChanged(m_media->isSeekable());
length(m_media->totalTime());
{
ticking = true;
setLength(msec);
+ previuousPos.clear();
ticking = false;
}