Commit 7c5767ec authored by Scott Wheeler's avatar Scott Wheeler

Using KSqueezedTextLabel here to avoid problems with the window size when

really long track / playlist names are used.  This isn't terribly pretty,
but better than resizing the window...

CCMAIL:76146-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=303121
parent 387966d7
......@@ -17,10 +17,10 @@
#include <kpushbutton.h>
#include <kiconloader.h>
#include <ksqueezedtextlabel.h>
#include <klocale.h>
#include <kdebug.h>
#include <qlabel.h>
#include <qtooltip.h>
#include <qlayout.h>
......@@ -50,13 +50,13 @@ StatusLabel::StatusLabel(QWidget *parent, const char *name) :
5, "trackAndPlaylistLayout");
trackAndPlaylistLayout->addSpacing(5);
m_playlistLabel = new QLabel(trackAndPlaylist, "playlistLabel");
m_playlistLabel = new KSqueezedTextLabel(trackAndPlaylist, "playlistLabel");
trackAndPlaylistLayout->addWidget(m_playlistLabel);
m_playlistLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_playlistLabel->setTextFormat(PlainText);
m_playlistLabel->setAlignment(AlignLeft | AlignVCenter);
m_trackLabel = new QLabel(trackAndPlaylist, "trackLabel");
m_trackLabel = new KSqueezedTextLabel(trackAndPlaylist, "trackLabel");
trackAndPlaylistLayout->addWidget(m_trackLabel);
m_trackLabel->setAlignment(AlignRight | AlignVCenter);
m_trackLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
......
......@@ -21,6 +21,7 @@
#include <qhbox.h>
class QLabel;
class KSqueezedTextLabel;
class FileHandle;
class PlaylistInterface;
......@@ -76,8 +77,8 @@ private:
int m_playlistTotalTime;
bool m_showTimeRemaining;
QLabel *m_playlistLabel;
QLabel *m_trackLabel;
KSqueezedTextLabel *m_playlistLabel;
KSqueezedTextLabel *m_trackLabel;
QLabel *m_itemTimeLabel;
};
......
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