add mp3 and ogg torrent url info to JamendoAlbum
[amarok.git] / src / hintlineedit.cpp
blob88ad6c9d186d48112d1342ea84995c29995569ce
1 #include "hintlineedit.h"
3 #include <kvbox.h>
5 #include <QFont>
6 #include <QLabel>
8 HintLineEdit::HintLineEdit( const QString &hint, const QString &text, QWidget *parent )
9 : KLineEdit( text, 0 )
10 , m_vbox( new KVBox( parent ) )
12 init();
13 m_hint->setText( hint );
16 HintLineEdit::HintLineEdit( const QString &text, QWidget *parent )
17 : KLineEdit( text, 0 )
18 , m_vbox( new KVBox( parent ) )
20 init();
23 HintLineEdit::HintLineEdit( QWidget *parent )
24 : KLineEdit( 0 )
25 , m_vbox( new KVBox( parent ) )
27 init();
30 void
31 HintLineEdit::init()
33 setParent( m_vbox );
34 show();
35 m_hint = new QLabel( m_vbox );
36 //m_hint->setBuddy( this );
37 m_hint->setFocusPolicy( Qt::NoFocus );
38 QFont font;
39 font.setPointSize( font.pointSize() - 2);
40 m_hint->setFont( font );
43 HintLineEdit::~HintLineEdit()
45 setParent( 0 );
46 delete m_vbox;
49 void
50 HintLineEdit::setHint( const QString &hint )
52 m_hint->setText( hint );
55 QObject *
56 HintLineEdit::parent()
58 return m_vbox->parent();
61 #include "hintlineedit.moc"