From e0e3f00c8564377ffa7713fb8f3c10cb73412553 Mon Sep 17 00:00:00 2001 From: Elvio Basello Date: Sat, 12 Apr 2008 15:49:54 +0000 Subject: removed COMPILE_INFO_TIPS macro git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1464 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/reguser/dialog.cpp | 19 +------------------ src/modules/reguser/edituser.cpp | 8 -------- 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'src/modules/reguser') diff --git a/src/modules/reguser/dialog.cpp b/src/modules/reguser/dialog.cpp index 01b317fe5..e2952f727 100644 --- a/src/modules/reguser/dialog.cpp +++ b/src/modules/reguser/dialog.cpp @@ -178,13 +178,11 @@ KviRegisteredUsersDialog::KviRegisteredUsersDialog(QWidget * par) m_pListView->setSelectionMode(KviTalListView::Extended); m_pListView->setRootIsDecorated(TRUE); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pListView,__tr2qs("
This is the list of registered users. " \ "KVIrc can automatically recognize and associate properties to them.
" \ "Use the buttons on the right to add, edit and remove entries. " \ "The \"notify\" column allows you to quickly add users to the notify list. " \ "Notify list fine-tuning can be performed by editing the entry properties.
")); -#endif // COMPILE_INFO_TIPS connect(m_pListView,SIGNAL(pressed(KviTalListViewItem *,const QPoint &,int)),this,SLOT(itemPressed(KviTalListViewItem *,const QPoint &,int))); connect(m_pListView,SIGNAL(doubleClicked(KviTalListViewItem *)),this,SLOT(itemDoubleClicked(KviTalListViewItem *))); @@ -197,41 +195,31 @@ KviRegisteredUsersDialog::KviRegisteredUsersDialog(QWidget * par) m_pWizardAddButton = new QPushButton(__tr2qs("Add (Wizard)..."),vbox); connect(m_pWizardAddButton,SIGNAL(clicked()),this,SLOT(addWizardClicked())); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pWizardAddButton,__tr2qs("Add a registered user by means of a user-friendly wizard.")); -#endif // COMPILE_INFO_TIPS m_pWizardAddButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_NEWITEMBYWIZARD))); m_pAddButton = new QPushButton(__tr2qs("&Add..."),vbox); connect(m_pAddButton,SIGNAL(clicked()),this,SLOT(addClicked())); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pAddButton,__tr2qs("Open the edit dialog to create a new user entry.")); -#endif // COMPILE_INFO_TIPS m_pAddButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_NEWITEM))); m_pAddGroupButton = new QPushButton(__tr2qs("&Add Group..."),vbox); connect(m_pAddGroupButton,SIGNAL(clicked()),this,SLOT(addGroupClicked())); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pAddGroupButton,__tr2qs("Adds a new group")); -#endif // COMPILE_INFO_TIPS m_pAddGroupButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_NEWITEM))); m_pRemoveButton = new QPushButton(__tr2qs("Re&move"),vbox); connect(m_pRemoveButton,SIGNAL(clicked()),this,SLOT(removeClicked())); m_pRemoveButton->setEnabled(false); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pRemoveButton,__tr2qs("Remove the currently selected entries.")); -#endif // COMPILE_INFO_TIPS m_pRemoveButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_DELETEITEM))); m_pEditButton = new QPushButton(__tr2qs("&Edit..."),vbox); connect(m_pEditButton,SIGNAL(clicked()),this,SLOT(editClicked())); m_pEditButton->setEnabled(false); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pEditButton,__tr2qs("Edit the first selected entry.")); -#endif // COMPILE_INFO_TIPS m_pEditButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_EDITITEM))); QFrame * f = new QFrame(vbox); @@ -240,17 +228,13 @@ KviRegisteredUsersDialog::KviRegisteredUsersDialog(QWidget * par) m_pExportButton = new QPushButton(__tr("Export To..."),vbox); m_pExportButton->setEnabled(false); connect(m_pExportButton,SIGNAL(clicked()),this,SLOT(exportClicked())); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pExportButton,__tr2qs("Export the selected entries to a file.
All the data associated with the selected registered users will be exported.
You (or anyone else) can later import the entries by using the \"Import\" button.")); -#endif // COMPILE_INFO_TIPS m_pExportButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_FLOPPY))); m_pImportButton = new QPushButton(__tr("Import From..."),vbox); connect(m_pImportButton,SIGNAL(clicked()),this,SLOT(importClicked())); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pImportButton,__tr2qs("Import entries from a file exported earlier by the \"export\" function of this dialog.")); -#endif // COMPILE_INFO_TIPS m_pImportButton->setIconSet(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_FOLDER))); @@ -297,8 +281,7 @@ KviRegisteredUsersDialog::KviRegisteredUsersDialog(QWidget * par) KviRegisteredUsersDialog::~KviRegisteredUsersDialog() { #ifndef Q_OS_MACX - if(!parent())KVI_OPTION_RECT(KviOption_rectRegisteredUsersDialogGeometry) = QRect(pos().x(),pos().y(), - size().width(),size().height()); + if(!parent())KVI_OPTION_RECT(KviOption_rectRegisteredUsersDialogGeometry) = QRect(pos().x(),pos().y(),size().width(),size().height()); #else if(!parent())KVI_OPTION_RECT(KviOption_rectRegisteredUsersDialogGeometry) = geometry(); #endif diff --git a/src/modules/reguser/edituser.cpp b/src/modules/reguser/edituser.cpp index 471b211c4..71a600ba6 100644 --- a/src/modules/reguser/edituser.cpp +++ b/src/modules/reguser/edituser.cpp @@ -235,9 +235,7 @@ KviReguserMaskDialog::KviReguserMaskDialog(QWidget * p,KviIrcMask * m) m_pNickEdit = new QLineEdit(b); //m_pNickEdit->setMinimumWidth(120); m_pNickEdit->setAlignment(Qt::AlignRight); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pNickEdit,__tr2qs("
This the nickname that will match this user, default value is the registered name.
")); -#endif l = new QLabel("
!
",b); l->setAlignment(Qt::AlignCenter); @@ -246,9 +244,7 @@ KviReguserMaskDialog::KviReguserMaskDialog(QWidget * p,KviIrcMask * m) m_pUserEdit = new QLineEdit(b); //m_pUserEdit->setMinimumWidth(120); m_pUserEdit->setAlignment(Qt::AlignCenter); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pUserEdit,__tr2qs("
This the username that will match this user. * will match any username.
")); -#endif l = new QLabel("
@
",b); l->setAlignment(Qt::AlignCenter); @@ -257,9 +253,7 @@ KviReguserMaskDialog::KviReguserMaskDialog(QWidget * p,KviIrcMask * m) m_pHostEdit = new QLineEdit(b); //m_pHostEdit->setMinimumWidth(120); m_pHostEdit->setAlignment(Qt::AlignLeft); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pHostEdit,__tr2qs("
This the hostname that will match this user. * will match any hostname.
")); -#endif // just a spacer // l = new QLabel(" ",this); @@ -400,9 +394,7 @@ KviRegisteredUserEntryDialog::KviRegisteredUserEntryDialog(QWidget *p,KviRegiste l->setEnabled(m_pNotifyCheck->isChecked()); g->addWidget(l,1,0); connect(m_pNotifyCheck,SIGNAL(toggled(bool)),l,SLOT(setEnabled(bool))); -#ifdef COMPILE_INFO_TIPS QToolTip::add(m_pNotifyCheck,__tr2qs("
You can enter a space separated list of nicknames.
")); -#endif m_pNotifyNick = new QLineEdit(p2); -- cgit v1.3.1-10-gc9f91