Commit 2a3a9e09 authored by Scott Wheeler's avatar Scott Wheeler

Make the full path name visible in the tooltip for the file lineedit in

the tag editor.

CCMAIL:79544-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=303297
parent b149cdef
......@@ -35,6 +35,7 @@
#include <qlayout.h>
#include <qdir.h>
#include <qvalidator.h>
#include <qtooltip.h>
#include <id3v1genres.h>
......@@ -57,6 +58,20 @@ public:
}
};
class FileBoxToolTip : public QToolTip
{
public:
FileBoxToolTip(TagEditor *editor, QWidget *widget) :
QToolTip(widget), m_editor(editor) {}
protected:
virtual void maybeTip(const QPoint &)
{
tip(m_editor->rect(), m_editor->items().first()->file().absFilePath());
}
private:
TagEditor *m_editor;
};
////////////////////////////////////////////////////////////////////////////////
// public members
////////////////////////////////////////////////////////////////////////////////
......@@ -124,6 +139,7 @@ void TagEditor::slotRefresh()
m_albumNameBox->setEditText(tag->album());
m_fileNameBox->setText(item->file().fileInfo().fileName());
new FileBoxToolTip(this, m_fileNameBox);
m_bitrateBox->setText(QString::number(tag->bitrate()));
m_lengthBox->setText(tag->lengthString());
......
......@@ -43,6 +43,7 @@ public:
TagEditor(QWidget *parent = 0, const char *name = 0);
virtual ~TagEditor();
void save() { save(m_items); }
PlaylistItemList items() const { return m_items; }
public slots:
void slotSetItems(const PlaylistItemList &list);
......
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