CommandMapping dialogs: Use FancyLineEdit and FilterLineEdit.

This commit is contained in:
Daniel Molkentin
2010-03-18 14:38:36 +01:00
parent f4add2b852
commit 418ef57cf9
2 changed files with 23 additions and 19 deletions

View File

@@ -69,11 +69,11 @@ QWidget *CommandMappings::createPage(QWidget *parent)
m_page = new Ui_CommandMappings();
QWidget *w = new QWidget(parent);
m_page->setupUi(w);
m_page->resetButton->setIcon(QIcon(Constants::ICON_RESET));
m_page->targetEdit->setPixmap(QPixmap(Constants::ICON_RESET));
m_page->targetEdit->setSide(Utils::FancyLineEdit::Right);
m_page->targetEdit->installEventFilter(this);
connect(m_page->resetButton, SIGNAL(clicked()),
connect(m_page->targetEdit, SIGNAL(buttonClicked()),
this, SLOT(resetTargetIdentifier()));
connect(m_page->removeButton, SIGNAL(clicked()),
this, SLOT(removeTargetIdentifier()));