From 51f8bee69fc7170cf6b6e0963cd58864c1ad733c Mon Sep 17 00:00:00 2001
From: un1versal
Date: Sat, 30 Jan 2016 19:00:12 +0000
Subject: OptionsWidget_identity: remove tooltip center formatting
---
src/modules/options/OptionsWidget_identity.cpp | 59 ++++++++++++--------------
1 file changed, 27 insertions(+), 32 deletions(-)
(limited to 'src/modules/options/OptionsWidget_identity.cpp')
diff --git a/src/modules/options/OptionsWidget_identity.cpp b/src/modules/options/OptionsWidget_identity.cpp
index ec1841b11..30c63e1ce 100644
--- a/src/modules/options/OptionsWidget_identity.cpp
+++ b/src/modules/options/OptionsWidget_identity.cpp
@@ -124,7 +124,7 @@ AvatarDownloadDialog::AvatarDownloadDialog(QWidget * par,const QString &szUrl)
QGridLayout * g = new QGridLayout(this);
- m_pOutput = new QLabel(__tr2qs_ctx("
Please wait while the avatar is being downloaded","options"),this);
+ m_pOutput = new QLabel(__tr2qs_ctx("Please wait while the avatar is being downloaded","options"),this);
g->addWidget(m_pOutput,0,0,1,2);
QPushButton * b = new QPushButton(__tr2qs_ctx("Abort","options"),this);
@@ -180,9 +180,7 @@ void AvatarDownloadDialog::downloadMessage(const QString &szMsg)
{
if(!szMsg.isEmpty())
{
- QString txt = "";
- txt += szMsg;
- txt += "";
+ QString txt = szMsg;
m_pOutput->setText(szMsg);
}
}
@@ -305,10 +303,10 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(QWidget * paren
KviStringSelector * sel = addStringSelector(hb,__tr2qs_ctx("Nickname:","options"),KviOption_stringNickname1);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,__tr2qs_ctx("Your nickname is your primary form of identification on IRC.
" \
+ mergeTip(sel,__tr2qs_ctx("Your nickname is your primary form of identification on IRC.
" \
"Since servers cannot accept multiple users sharing the same nickname " \
"(case insensitive), you can provide alternative nicknames to be used in case"\
- "the server refuses to accept the default one.","options"));
+ "the server refuses to accept the default one.","options"));
QValidator * v = new QRegExpValidator(QRegExp("[^-0-9 ][^ ]*"),hb);
sel->setValidator(v);
@@ -318,22 +316,20 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(QWidget * paren
sel = addStringSelector(gbox,__tr2qs_ctx("Username:","options"),KviOption_stringUsername);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,__tr2qs_ctx("This is the username that you will use to connect to the server.
" \
+ mergeTip(sel,__tr2qs_ctx("This is the username that you will use to connect to the server.
" \
"In the past, it was used as a form of authentication, but it normally has no special use now.
" \
- "In addition to your nickname, you are identified on IRC by your username@hostname." \
- "Basically, you can enter any word you like here. :D","options"));
+ "In addition to your nickname, you are identified on IRC by your username@hostname.
" \
+ "Basically, you can enter any word you like here.","options"));
sel = addStringSelector(gbox,__tr2qs_ctx("Real name:","options"),KviOption_stringRealname);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,__tr2qs_ctx("This text will appear when someone does a /WHOIS on you.
" \
- "It is intended to be your real name, but people tend to put random quotes and phrases here too.","options"));
+ mergeTip(sel,__tr2qs_ctx("This text will appear when someone does a /WHOIS on you.
" \
+ "It is intended to be your real name, but people tend to put random quotes and phrases here too.","options"));
QString szOptionalCtcpUserInfo = __tr2qs_ctx("This field is optional and will appear as part of the CTCP USERINFO reply.","options");
- QString szCenterBegin("");
- QString szCenterEnd("");
- QString szTrailing = "
" + szOptionalCtcpUserInfo + szCenterEnd;
+ QString szTrailing = "
" + szOptionalCtcpUserInfo;
gbox = addGroupBox(0,1,0,1,Qt::Horizontal,__tr2qs_ctx("Profile","options"));
@@ -343,7 +339,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(QWidget * paren
l->setMinimumWidth(120);
m_pAgeCombo = new QComboBox(hb);
- QString szTip1 = szCenterBegin + __tr2qs_ctx("Here you can specify your age.","options") + szTrailing;
+ QString szTip1 = __tr2qs_ctx("Here you can specify your age.","options") + szTrailing;
KviTalToolTip::add(l,szTip1);
KviTalToolTip::add(m_pAgeCombo,szTip1);
m_pAgeCombo->addItem(__tr2qs_ctx("Unspecified","options"));
@@ -370,7 +366,7 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(QWidget * paren
l->setMinimumWidth(120);
m_pGenderCombo = new QComboBox(hb);
- QString szTip2 = szCenterBegin + __tr2qs_ctx("Here you can specify your gender.","options") + szTrailing;
+ QString szTip2 = __tr2qs_ctx("Here you can specify your gender.","options") + szTrailing;
KviTalToolTip::add(l,szTip2);
KviTalToolTip::add(m_pGenderCombo,szTip2);
m_pGenderCombo->addItem(__tr2qs_ctx("Unspecified","options"));
@@ -388,18 +384,18 @@ KviIdentityGeneralOptionsWidget::KviIdentityGeneralOptionsWidget(QWidget * paren
sel = addStringSelector(gbox,__tr2qs_ctx("Location:","options"),KviOption_stringCtcpUserInfoLocation);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,szCenterBegin + __tr2qs_ctx("You can describe here your approximate physical location. " \
+ mergeTip(sel, __tr2qs_ctx("You can describe here your approximate physical location. " \
"Something like \"Region, Country\" will be OK. Please note that this information will be viewable " \
"by anyone so putting more data (like the exact address), generally, is not a good idea.","options") + szTrailing);
sel = addStringSelector(gbox,__tr2qs_ctx("Languages:","options"),KviOption_stringCtcpUserInfoLanguages);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,szCenterBegin + __tr2qs_ctx("You can put here the short names of the languages you can speak. " \
+ mergeTip(sel, __tr2qs_ctx("You can put here the short names of the languages you can speak. " \
"An example might be \"EN, IT\" that would mean that you speak both Italian and English.","options") + szTrailing);
sel = addStringSelector(gbox,__tr2qs_ctx("Other:","options"),KviOption_stringCtcpUserInfoOther);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,szCenterBegin + __tr2qs_ctx("You can put here some additional personal data. " \
+ mergeTip(sel, __tr2qs_ctx("You can put here some additional personal data. " \
"It might be a funny quote or your homepage URL... " \
"Please note that this information will be viewable " \
"by anyone so don't put any sensible data (passwords, telephone or credit card numbers).","options") + szTrailing);
@@ -464,13 +460,12 @@ OptionsWidget_identityAvatar::OptionsWidget_identityAvatar(QWidget * parent)
bool bHaveAvatar = (!KVI_OPTION_STRING(KviOption_stringMyAvatar).isEmpty()) && m_pLocalAvatar->pixmap();
- QString szTip = __tr2qs_ctx("Here you can choose your avatar image. It will be visible
" \
- "by other people that request it. Choose a nice image of yourself,
" \
- "possibly avoiding obscenity and offending images. It is a good idea
" \
- "to choose a relatively small file (say 150 Kb max) because
" \
+ QString szTip = __tr2qs_ctx("Here you can choose your avatar image.
" \
+ "It will be visible by other people that request it.
" \
+ "Choose a nice image of yourself, possibly avoiding obscenity and offending images.
" \
+ "A good idea is to choose a relatively small file of around 150 Kb max, because " \
"most clients have a limit on the size of avatars being downloaded.
" \
- "The image also should be smaller than 800x600 pixels since
" \
- "it will have to be viewable in everyone's monitor.","options");
+ "The image also should be smaller than 800x600 pixels since it will have to be viewable in everyone's monitor.","options");
m_pUseAvatarCheck = new QCheckBox(__tr2qs_ctx("Use avatar:","options"),this);
addWidgetToLayout(m_pUseAvatarCheck,0,0,0,0);
@@ -662,13 +657,13 @@ OptionsWidget_identityAdvanced::OptionsWidget_identityAdvanced(QWidget * parent)
KviStringSelector * sel = addStringSelector(gbox, __tr2qs_ctx("Part message:","options"),KviOption_stringPartMessage);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,__tr2qs_ctx("This is the default part message that will be used when you
" \
- "leave a channel by closing a channel window.","options"));
+ mergeTip(sel,__tr2qs_ctx("This is the default part message that will be used when you " \
+ "leave a channel by closing a channel window.","options"));
sel = addStringSelector(gbox, __tr2qs_ctx("Quit message:","options"),KviOption_stringQuitMessage);
sel->setMinimumLabelWidth(120);
- mergeTip(sel,__tr2qs_ctx("This is the default quit message that will be used when you
" \
- "quit your IRC session by closing the console window or disconnecting by pressing the disconnect button.","options"));
+ mergeTip(sel,__tr2qs_ctx("This is the default quit message that will be used when you " \
+ "quit your IRC session by closing the console window or disconnecting by pressing the disconnect button.","options"));
addRowSpacer(0,2,0,2);
}
@@ -716,13 +711,13 @@ OptionsWidget_identityProfile::OptionsWidget_identityProfile(QWidget * pParent)
labels.append(__tr2qs_ctx("Name","options"));
labels.append(__tr2qs_ctx("Network","options"));
labels.append(__tr2qs_ctx("Nickname","options"));
- labels.append(__tr2qs_ctx("Alternate nickname","options"));
+ labels.append(__tr2qs_ctx("Alt. nickname","options"));
labels.append(__tr2qs_ctx("Username","options"));
labels.append(__tr2qs_ctx("Real name","options"));
m_pTreeWidget->setHeaderLabels(labels);
KviTalToolTip::add(m_pTreeWidget, \
- __tr2qs_ctx("This is a set of rules to use profiles." \
+ __tr2qs_ctx("This is a set of rules to use profiles.
" \
"KVIrc will use them to handle the user connection " \
"data before the data is sent to the IRC server.
" \
"This is useful if a user wants to use different data " \
@@ -911,7 +906,7 @@ IdentityProfileEditor::IdentityProfileEditor(QWidget * pParent)
KviTalToolTip::add(m_pNickEdit,__tr2qs_ctx("Put here the nickname you want to use","options"));
pLayout->addWidget(m_pNickEdit,2,1,1,2);
- pLabel = new QLabel(__tr2qs_ctx("Alternative nickname:","options"),this);
+ pLabel = new QLabel(__tr2qs_ctx("Alt. nickname:","options"),this);
pLayout->addWidget(pLabel,3,0);
m_pAltNickEdit = new QLineEdit(this);
--
cgit v1.3.1-10-gc9f91