Commit 45e11fef authored by Michael Pyne's avatar Michael Pyne

Re-fix the placement of the buttons around the track announcement popup.

svn path=/trunk/kdemultimedia/juk/; revision=316941
parent f7cc5737
......@@ -157,24 +157,36 @@ void SystemTray::createPopup()
bool onLeft = buttonsToLeft();
QVBox *buttonBox;
QVBox *infoBox;
if(onLeft) {
// They go to the left because JuK is on that side
buttonBox = new QVBox(box);
buttonBox->setSpacing(3);
// Separator line
QFrame *line = new QFrame(box);
line->setFrameShape(QFrame::VLine);
infoBox = new QVBox(box);
}
else {
// Buttons go on right because JuK is there
infoBox = new QVBox(box);
QVBox *infoBox = new QVBox(box);
QFrame *line = new QFrame(box);
line->setFrameShape(QFrame::VLine);
buttonBox = new QVBox(box);
}
infoBox->setSpacing(3);
infoBox->setMargin(3);
buttonBox->setSpacing(3);
// This should be initialized to the number of labels that are used.
......@@ -184,12 +196,6 @@ void SystemTray::createPopup()
(*it)->setAlignment(AlignRight | AlignVCenter);
}
QFrame *line = new QFrame(box);
line->setFrameShape(QFrame::VLine);
buttonBox = new QVBox(box);
buttonBox->setSpacing(3);
QPushButton *forwardButton = new QPushButton(m_forwardPix, 0, buttonBox, "popup_forward");
forwardButton->setFlat(true);
connect(forwardButton, SIGNAL(clicked()), action("forward"), SLOT(activate()));
......
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