summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/picker.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/picker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/picker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/picker.cpp b/core/pim/addressbook/picker.cpp
index 8a9c85b..b962896 100644
--- a/core/pim/addressbook/picker.cpp
+++ b/core/pim/addressbook/picker.cpp
@@ -146,100 +146,100 @@ void PickerLabel::mouseReleaseEvent( QMouseEvent* /* e */ )
}
}
void PickerLabel::emitClearSignal() {
emit clearAll();
}
LetterPicker::LetterPicker( QWidget *parent, const char *name )
: QFrame( parent, name )
{
QHBoxLayout *l = new QHBoxLayout(this);
lblABC = new PickerLabel( this );
l->addWidget( lblABC );
lblDEF = new PickerLabel( this );
l->addWidget( lblDEF );
lblGHI = new PickerLabel( this );
l->addWidget( lblGHI );
lblJKL = new PickerLabel( this );
l->addWidget( lblJKL );
lblMNO = new PickerLabel( this );
l->addWidget( lblMNO );
lblPQR = new PickerLabel( this );
l->addWidget( lblPQR );
lblSTU = new PickerLabel( this );
l->addWidget( lblSTU );
lblVWX = new PickerLabel( this );
l->addWidget( lblVWX );
lblYZ = new PickerLabel( this );
l->addWidget( lblYZ );
lblABC->setLetters( 'A', 'B', 'C' );
lblDEF->setLetters( 'D', 'E', 'F' );
lblGHI->setLetters( 'G', 'H', 'I' );
lblJKL->setLetters( 'J', 'K', 'L' );
lblMNO->setLetters( 'M', 'N', 'O' );
lblPQR->setLetters( 'P', 'Q', 'R' );
lblSTU->setLetters( 'S', 'T', 'U' );
lblVWX->setLetters( 'V', 'W', 'X' );
lblYZ->setLetters( 'Y', 'Z', '#' );
connect(lblABC, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblDEF, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblGHI, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblJKL, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblMNO, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblPQR, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblSTU, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblVWX, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblYZ, SIGNAL(selectedLetter(char)), this, SLOT(newLetter(char)));
connect(lblABC, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblDEF, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblGHI, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblJKL, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblMNO, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblPQR, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblSTU, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblVWX, SIGNAL(clearAll()), this, SLOT(clear()));
connect(lblYZ, SIGNAL(clearAll()), this, SLOT(clear()));
}
LetterPicker::~LetterPicker()
{
}
QSizePolicy LetterPicker::sizePolicy () const
{
return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Maximum);
}
void LetterPicker::clear()
{
lblABC->clearLetter();
lblDEF->clearLetter();
lblGHI->clearLetter();
lblJKL->clearLetter();
lblMNO->clearLetter();
lblPQR->clearLetter();
lblSTU->clearLetter();
lblVWX->clearLetter();
lblYZ->clearLetter();
}
void LetterPicker::newLetter( char letter )
{
- owarn << "LetterClicked" << oendl;
+ odebug << "LetterClicked" << oendl;
emit letterClicked( letter );
}