aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/options/OptionsWidget_textIcons.cpp
diff options
context:
space:
mode:
authorGravatar un1versal2016-05-11 12:05:20 +0100
committerGravatar un1versal2016-05-11 23:35:47 +0100
commit3a7afc0aa9a20b10af5e92c32ea4abc3f35c1741 (patch)
tree539a5f24da870d45e35c33f56b58a497934725c9 /src/modules/options/OptionsWidget_textIcons.cpp
parentvarious: make &Browse translatable as other entries. (diff)
downloadKVIrc-3a7afc0aa9a20b10af5e92c32ea4abc3f35c1741.tar.gz
KVIrc-3a7afc0aa9a20b10af5e92c32ea4abc3f35c1741.tar.bz2
KVIrc-3a7afc0aa9a20b10af5e92c32ea4abc3f35c1741.zip
OptionsWidget_textIcons: add browse button label
+ make translatable
Diffstat (limited to 'src/modules/options/OptionsWidget_textIcons.cpp')
-rw-r--r--src/modules/options/OptionsWidget_textIcons.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/modules/options/OptionsWidget_textIcons.cpp b/src/modules/options/OptionsWidget_textIcons.cpp
index 4114c036d..644a5c3bf 100644
--- a/src/modules/options/OptionsWidget_textIcons.cpp
+++ b/src/modules/options/OptionsWidget_textIcons.cpp
@@ -87,9 +87,8 @@ OptionsWidget_textIcons::OptionsWidget_textIcons(QWidget * parent)
m_pTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
mergeTip(m_pTable->viewport(), __tr2qs_ctx("This table contains the text icon associations.<br>"
- "KVirc will use them to display the CTRL+I escape sequences and eventually the "
- "emoticons.",
- "options"));
+ "KVIrc will use them to display the CTRL+I escape sequences "
+ "and eventually the emoticons.", "options"));
layout()->addWidget(m_pTable, 0, 0, 1, 3);
@@ -173,12 +172,12 @@ void OptionsWidget_textIcons::iconSelected(KviIconManager::SmallIcon eIcon)
pBox->setMargin(0);
m_pCurrentIconButton = new QToolButton(pBox);
- m_pCurrentIconButton->setMinimumWidth(150);
+ m_pCurrentIconButton->setMinimumWidth(90);
m_pCurrentIconButton->setIcon(QIcon(*m_pCurrentItem->icon()->pixmap()));
connect(m_pCurrentIconButton, SIGNAL(clicked()), this, SLOT(doPopup()));
QToolButton * pBrowseButton = new QToolButton(pBox);
- pBrowseButton->setText("...");
+ pBrowseButton->setText(__tr2qs("&Browse..."));
connect(pBrowseButton, SIGNAL(clicked()), this, SLOT(chooseFromFile()));
m_pTable->setCellWidget(m_pCurrentItem->row(), 1, pBox);
@@ -248,13 +247,12 @@ void OptionsWidget_textIcons::currentItemChanged(QTableWidgetItem * cur, QTableW
pBox->setMargin(0);
m_pCurrentIconButton = new QToolButton(pBox);
- m_pCurrentIconButton->setMinimumWidth(150);
+ m_pCurrentIconButton->setMinimumWidth(90);
m_pCurrentIconButton->setIcon(QIcon(cur->icon()));
connect(m_pCurrentIconButton, SIGNAL(clicked()), this, SLOT(doPopup()));
- // FIXME: this does not work currently!
QToolButton * pBrowseButton = new QToolButton(pBox);
- pBrowseButton->setText("...");
+ pBrowseButton->setText(__tr2qs("&Browse..."));
connect(pBrowseButton, SIGNAL(clicked()), this, SLOT(chooseFromFile()));
m_pTable->setCellWidget(cur->row(), 1, pBox);