summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:35:00 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:35:00 -0600
commit522c7294f06d294c77bc1ea7d0dec4b371c43373 (patch)
tree22e15f6e31eba6c17ce06d8e1b0de24ef8b8f002
parent2a411f53a04f815770074b633e026a141f6fa875 (diff)
downloadbasket-522c7294f06d294c77bc1ea7d0dec4b371c43373.tar.gz
basket-522c7294f06d294c77bc1ea7d0dec4b371c43373.zip
Remove additional unneeded tq method conversions
-rw-r--r--src/archive.cpp4
-rw-r--r--src/backup.cpp26
-rw-r--r--src/basket.cpp26
-rw-r--r--src/basketfactory.cpp4
-rw-r--r--src/basketlistview.cpp44
-rw-r--r--src/bnpview.cpp24
-rw-r--r--src/crashhandler.cpp16
-rw-r--r--src/formatimporter.cpp4
-rw-r--r--src/htmlexporter.cpp18
-rw-r--r--src/kcolorcombo2.cpp2
-rw-r--r--src/kgpgme.cpp18
-rw-r--r--src/kiconcanvas.cpp2
-rw-r--r--src/likeback.cpp6
-rw-r--r--src/linklabel.cpp18
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/notecontent.cpp32
-rw-r--r--src/noteedit.cpp8
-rw-r--r--src/notefactory.cpp8
-rw-r--r--src/password.cpp2
-rw-r--r--src/qeffects.cpp24
-rw-r--r--src/regiongrabber.cpp10
-rw-r--r--src/settings.cpp4
-rw-r--r--src/softwareimporters.cpp2
-rw-r--r--src/systemtray.cpp4
-rw-r--r--src/tag.cpp22
-rw-r--r--src/tagsedit.cpp6
-rw-r--r--src/variouswidgets.cpp2
27 files changed, 169 insertions, 169 deletions
diff --git a/src/archive.cpp b/src/archive.cpp
index 6345a00..6f57f87 100644
--- a/src/archive.cpp
+++ b/src/archive.cpp
@@ -313,7 +313,7 @@ void Archive::open(const TQString &path)
"It can be opened but not every information will be available to you. "
"For instance, some notes may be missing because they are of a type only available in new versions. "
"When saving the file back, consider to save it to another file, to preserve the original one.")
- .tqarg(kapp->aboutData()->programName()),
+ .arg(kapp->aboutData()->programName()),
i18n("Basket Archive Error")
);
}
@@ -321,7 +321,7 @@ void Archive::open(const TQString &path)
KMessageBox::error(
0,
i18n("This file was created with a recent version of %1. Please upgrade to a newer version to be able to open that file.")
- .tqarg(kapp->aboutData()->programName()),
+ .arg(kapp->aboutData()->programName()),
i18n("Basket Archive Error")
);
file.close();
diff --git a/src/backup.cpp b/src/backup.cpp
index d49313a..807ac35 100644
--- a/src/backup.cpp
+++ b/src/backup.cpp
@@ -65,7 +65,7 @@ BackupDialog::BackupDialog(TQWidget *parent, const char *name)
savesFolder = savesFolder.left(savesFolder.length() - 1); // savesFolder ends with "/"
TQGroupBox *folderGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Save Folder"), page);
- new TQLabel("<qt><nobr>" + i18n("Your baskets are currently stored in that folder:<br><b>%1</b>").tqarg(savesFolder), folderGroup);
+ new TQLabel("<qt><nobr>" + i18n("Your baskets are currently stored in that folder:<br><b>%1</b>").arg(savesFolder), folderGroup);
TQWidget *folderWidget = new TQWidget(folderGroup);
TQHBoxLayout *folderLayout = new TQHBoxLayout(folderWidget, 0, spacingHint());
TQPushButton *moveFolder = new TQPushButton(i18n("&Move to Another Folder..."), folderWidget);
@@ -77,9 +77,9 @@ BackupDialog::BackupDialog(TQWidget *parent, const char *name)
"In this case, mount the shared-folder to the local file system and ask %2 to use that mount point.<br>"
"Warning: you should not run %3 at the same time on both computers, or you risk to loss data while the two applications are desynced.</li>"
"</ul><p>Please remember that you should not change the content of that folder manually (eg. adding a file in a basket folder will not add that file to the basket).</p>")
- .tqarg(kapp->aboutData()->programName())
- .tqarg(kapp->aboutData()->programName())
- .tqarg(kapp->aboutData()->programName()),
+ .arg(kapp->aboutData()->programName())
+ .arg(kapp->aboutData()->programName())
+ .arg(kapp->aboutData()->programName()),
folderWidget);
folderLayout->addWidget(moveFolder);
folderLayout->addWidget(useFolder);
@@ -114,7 +114,7 @@ void BackupDialog::populateLastBackup()
{
TQString lastBackupText = i18n("Last backup: never");
if (Settings::lastBackup().isValid())
- lastBackupText = i18n("Last backup: %1").tqarg(Settings::lastBackup().toString(Qt::LocalDate));
+ lastBackupText = i18n("Last backup: %1").arg(Settings::lastBackup().toString(Qt::LocalDate));
m_lastBackup->setText(lastBackupText);
}
@@ -135,7 +135,7 @@ void BackupDialog::moveToAnotherFolder()
if (content.count() > 2) { // "." and ".."
int result = KMessageBox::questionYesNo(
0,
- "<qt>" + i18n("The folder <b>%1</b> is not empty. Do you want to override it?").tqarg(folder),
+ "<qt>" + i18n("The folder <b>%1</b> is not empty. Do you want to override it?").arg(folder),
i18n("Override Folder?"),
KGuiItem(i18n("&Override"), "filesave")
);
@@ -170,7 +170,7 @@ void BackupDialog::backup()
config->setGroup("Backups");
TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";
TQString fileName = i18n("Backup filename (without extension), %1 is the date", "Baskets_%1")
- .tqarg(TQDate::currentDate().toString(Qt::ISODate));
+ .arg(TQDate::currentDate().toString(Qt::ISODate));
TQString url = folder + fileName;
// Ask a file name & path to the user:
@@ -187,7 +187,7 @@ void BackupDialog::backup()
int result = KMessageBox::questionYesNoCancel(
0,
"<qt>" + i18n("The file <b>%1</b> already exists. Do you really want to override it?")
- .tqarg(KURL(destination).fileName()),
+ .arg(KURL(destination).fileName()),
i18n("Override File?"),
KGuiItem(i18n("&Override"), "filesave")
);
@@ -245,7 +245,7 @@ void BackupDialog::restore()
TQFile file(readmePath);
if (file.open(IO_WriteOnly)) {
TQTextStream stream(&file);
- stream << i18n("This is a safety copy of your baskets like they were before you started to restore the backup %1.").tqarg(KURL(path).fileName()) + "\n\n"
+ stream << i18n("This is a safety copy of your baskets like they were before you started to restore the backup %1.").arg(KURL(path).fileName()) + "\n\n"
<< i18n("If the restoration was a success and you restored what you wanted to restore, you can remove this folder.") + "\n\n"
<< i18n("If something went wrong during the restoration process, you can re-use this folder to store your baskets and nothing will be lost.") + "\n\n"
<< i18n("Choose \"Basket\" -> \"Backup & Restore...\" -> \"Use Another Existing Folder...\" and select that folder.") + "\n";
@@ -253,8 +253,8 @@ void BackupDialog::restore()
}
TQString message =
- "<p><nobr>" + i18n("Restoring <b>%1</b>. Please wait...").tqarg(KURL(path).fileName()) + "</nobr></p><p>" +
- i18n("If something goes wrong during the restoration process, read the file <b>%1</b>.").tqarg(readmePath);
+ "<p><nobr>" + i18n("Restoring <b>%1</b>. Please wait...").arg(KURL(path).fileName()) + "</nobr></p><p>" +
+ i18n("If something goes wrong during the restoration process, read the file <b>%1</b>.").arg(readmePath);
KProgressDialog *dialog = new KProgressDialog(0, 0, i18n("Restore Baskets"), message, /*modal=*/true);
dialog->setAllowCancel(false);
@@ -332,7 +332,7 @@ void Backup::setFolderAndRestart(const TQString &folder, const TQString &message
// This is important for users to trust the application in such a critical phase and understands what's happening:
KMessageBox::information(
0,
- "<qt>" + message.tqarg(
+ "<qt>" + message.arg(
(folder.endsWith("/") ? folder.left(folder.length() - 1) : folder),
kapp->aboutData()->programName()),
i18n("Restart")
@@ -353,7 +353,7 @@ TQString Backup::newSafetyFolder()
return fullPath;
for (int i = 2; ; ++i) {
- fullPath = TQDir::homeDirPath() + "/" + i18n("Safety folder name before restoring a basket data archive", "Baskets Before Restoration (%1)").tqarg(i) + "/";
+ fullPath = TQDir::homeDirPath() + "/" + i18n("Safety folder name before restoring a basket data archive", "Baskets Before Restoration (%1)").arg(i) + "/";
if (!dir.exists(fullPath))
return fullPath;
}
diff --git a/src/basket.cpp b/src/basket.cpp
index 9f3cedd..078a6c4 100644
--- a/src/basket.cpp
+++ b/src/basket.cpp
@@ -2533,7 +2533,7 @@ void Basket::doAutoScrollSelection()
dx = pos.x() - visibleWidth() + AUTO_SCROLL_MARGIN;
if (dx || dy) {
- kapp->sendPostedEvents(); // Do the repaints, because the scrolling will make the area to tqrepaint to be wrong
+ kapp->sendPostedEvents(); // Do the repaints, because the scrolling will make the area to repaint to be wrong
scrollBy(dx, dy);
if (!m_autoScrollSelectionTimer.isActive())
m_autoScrollSelectionTimer.start(AUTO_SCROLL_DELAY);
@@ -2707,7 +2707,7 @@ void Basket::mouseEnteredEditorWidget()
void Basket::removeInserter()
{
- if (m_inserterShown) { // Do not hide (and then update/tqrepaint the view) if it is already hidden!
+ if (m_inserterShown) { // Do not hide (and then update/repaint the view) if it is already hidden!
m_inserterShown = false;
updateContents(m_inserterRect);
}
@@ -2836,9 +2836,9 @@ void Basket::maybeTip(const TQPoint &pos)
if (tagsString.isEmpty())
tagsString = tagName;
else
- tagsString = i18n("%1, %2").tqarg(tagsString, tagName);
+ tagsString = i18n("%1, %2").arg(tagsString, tagName);
}
- message = message.tqarg(tagsString);
+ message = message.arg(tagsString);
}
break;
case Note::Custom0: message = note->content()->zoneTip(zone); break; //"Open this link/Open this file/Open this sound file/Launch this application"
@@ -2875,7 +2875,7 @@ void Basket::maybeTip(const TQPoint &pos)
TQStringList::iterator key;
TQStringList::iterator value;
for (key = keys.begin(), value = values.begin(); key != keys.end() && value != values.end(); ++key, ++value)
- message += "<br>" + i18n("of the form 'key: value'", "<b>%1</b>: %2").tqarg(*key, *value);
+ message += "<br>" + i18n("of the form 'key: value'", "<b>%1</b>: %2").arg(*key, *value);
message += "</nobr></qt>";
} else if (m_inserterSplit && (zone == Note::TopInsert || zone == Note::BottomInsert))
message += "\n" + i18n("Click on the right to group instead of insert");
@@ -3083,7 +3083,7 @@ void Basket::drawContents(TQPainter *painter, int clipX, int clipY, int clipWidt
#ifdef HAVE_LIBGPGME
label->setText( text + i18n("Press Unlock to access it.") );
#else
- label->setText( text + i18n("Encryption is not supported by<br/>this version of %1.").tqarg(kapp->aboutData()->programName()) );
+ label->setText( text + i18n("Encryption is not supported by<br/>this version of %1.").arg(kapp->aboutData()->programName()) );
#endif
label->setAlignment( int( TQLabel::AlignTop ) );
tqlayout->addMultiCellWidget( label, 0, 0, 1, 2 );
@@ -3132,7 +3132,7 @@ void Basket::drawContents(TQPainter *painter, int clipX, int clipY, int clipWidt
if (!m_loaded) {
TQPixmap pixmap(visibleWidth(), visibleHeight()); // TODO: Clip it to asked size only!
TQPainter painter2(&pixmap);
- TQSimpleRichText rt(TQString("<center>%1</center>").tqarg(i18n("Loading...")), TQScrollView::font());
+ TQSimpleRichText rt(TQString("<center>%1</center>").arg(i18n("Loading...")), TQScrollView::font());
rt.setWidth(visibleWidth());
int hrt = rt.height();
painter2.fillRect(0, 0, visibleWidth(), visibleHeight(), brush);
@@ -5001,13 +5001,13 @@ void Basket::keyPressEvent(TQKeyEvent *event)
if (event->state() & TQt::ShiftButton) { // Shift+arrowKeys selection
if (m_startOfShiftSelectionNote == 0L)
m_startOfShiftSelectionNote = toFocus;
- ensureNoteVisible(toFocus); // Important: this line should be before the other ones because else tqrepaint would be done on the wrong part!
+ ensureNoteVisible(toFocus); // Important: this line should be before the other ones because else repaint would be done on the wrong part!
selectRange(m_startOfShiftSelectionNote, toFocus);
setFocusedNote(toFocus);
event->accept();
return;
} else /*if (toFocus != m_focusedNote)*/ { // Move focus to ANOTHER note...
- ensureNoteVisible(toFocus); // Important: this line should be before the other ones because else tqrepaint would be done on the wrong part!
+ ensureNoteVisible(toFocus); // Important: this line should be before the other ones because else repaint would be done on the wrong part!
setFocusedNote(toFocus);
m_startOfShiftSelectionNote = toFocus;
if ( ! (event->state() & TQt::ControlButton) ) // ... select only current note if Control
@@ -5282,7 +5282,7 @@ bool Basket::loadFromFile(const TQString &fullPath, TQByteArray *array)
if(m_encryptionType == PrivateKeyEncryption)
m_gpg->setText(i18n("Please enter the password for the following private key:"), false);
else
- m_gpg->setText(i18n("Please enter the password for the basket <b>%1</b>:").tqarg(basketName()), false); // Used when decrypting
+ m_gpg->setText(i18n("Please enter the password for the basket <b>%1</b>:").arg(basketName()), false); // Used when decrypting
return m_gpg->decrypt(tmp, array);
}
#else
@@ -5327,7 +5327,7 @@ bool Basket::saveToFile(const TQString& fullPath, const TQByteArray& array, TQ_U
m_gpg->setText("", false);
}
else
- m_gpg->setText(i18n("Please assign a password to the basket <b>%1</b>:").tqarg(basketName()), true); // Used when defining a new password
+ m_gpg->setText(i18n("Please assign a password to the basket <b>%1</b>:").arg(basketName()), true); // Used when defining a new password
success = m_gpg->encrypt(array, length, &tmp, key);
length = tmp.size();
@@ -5394,9 +5394,9 @@ bool Basket::saveToFile(const TQString& fullPath, const TQByteArray& array, TQ_U
),
(openSuccess
? i18n("Please remove files on the disk <b>%1</b> to let the application safely save your changes.")
- .tqarg(KIO::findPathMountPoint(fullPath))
+ .arg(KIO::findPathMountPoint(fullPath))
: i18n("File permissions are bad for <b>%1</b>. Please check that you have write access to it and the parent folders.")
- .tqarg(fullPath)
+ .arg(fullPath)
),
TQT_TQWIDGET(kapp->activeWindow())
);
diff --git a/src/basketfactory.cpp b/src/basketfactory.cpp
index ed01301..5c54fd3 100644
--- a/src/basketfactory.cpp
+++ b/src/basketfactory.cpp
@@ -76,12 +76,12 @@ TQString BasketFactory::unpackTemplate(const TQString &templateName)
" <properties>\n"
" <disposition mindMap=\"%1\" columnCount=\"%2\" free=\"%3\" />\n"
" </properties>\n"
- " <notes>\n" ).tqarg( (templateName == "mindmap" ? "true" : "false"),
+ " <notes>\n" ).arg( (templateName == "mindmap" ? "true" : "false"),
TQString::number(nbColumns),
(templateName == "free" || templateName == "mindmap" ? "true" : "false") );
if (nbColumns > 0)
for (int i = 0; i < nbColumns; ++i)
- stream << TQString(" <group width=\"%1\"></group>\n").tqarg(columnWidth);
+ stream << TQString(" <group width=\"%1\"></group>\n").arg(columnWidth);
stream << " </notes>\n"
"</basket>\n";
file.close();
diff --git a/src/basketlistview.cpp b/src/basketlistview.cpp
index 1ec5cd5..a963f8f 100644
--- a/src/basketlistview.cpp
+++ b/src/basketlistview.cpp
@@ -109,8 +109,8 @@ TQString BasketListViewItem::escapedName(const TQString &string)
TQString letter; // Find the letter
TQString altKey = /*i18n(*/"Alt"/*)*/; //i18n("The [Alt] key, as shown in shortcuts like Alt+C...", "Alt");
TQString shiftKey = /*i18n(*/"Shift"/*)*/; //i18n("The [Shift] key, as shown in shortcuts like Alt+Shift+1...", "Shift");
- TQRegExp altLetterExp( TQString("^%1\\+(.)$").tqarg(altKey) );
- TQRegExp altShiftLetterExp( TQString("^%1\\+%2\\+(.)$").tqarg(altKey, shiftKey) );
+ TQRegExp altLetterExp( TQString("^%1\\+(.)$").arg(altKey) );
+ TQRegExp altShiftLetterExp( TQString("^%1\\+%2\\+(.)$").arg(altKey, shiftKey) );
if (altLetterExp.search(m_basket->shortcut().toStringInternal()) != -1)
letter = altLetterExp.cap(1);
if (letter.isEmpty() && altShiftLetterExp.search(m_basket->shortcut().toStringInternal()) != -1)
@@ -140,7 +140,7 @@ void BasketListViewItem::setup()
setPixmap(/*column=*/0, icon);
- tqrepaint();
+ repaint();
}
BasketListViewItem* BasketListViewItem::lastChild()
@@ -260,7 +260,7 @@ extern void drawGradient( TQPainter *p, const TQColor &colorTop, const TQColor &
TQPixmap BasketListViewItem::circledTextPixmap(const TQString &text, int height, const TQFont &font, const TQColor &color)
{
TQString key = TQString("BLI-%1.%2.%3.%4")
- .tqarg(text).tqarg(height).tqarg(font.toString()).tqarg(color.rgb());
+ .arg(text).arg(height).arg(font.toString()).arg(color.rgb());
if (TQPixmap* cached=TQPixmapCache::find(key)) {
return *cached;
}
@@ -335,12 +335,12 @@ TQPixmap BasketListViewItem::foundCountPixmap(bool isLoading, int countFound, bo
TQString text;
if (childsAreLoading) {
if (countChildsFound > 0)
- text = i18n("%1+%2+").tqarg(TQString::number(countFound), TQString::number(countChildsFound));
+ text = i18n("%1+%2+").arg(TQString::number(countFound), TQString::number(countChildsFound));
else
- text = i18n("%1+").tqarg(TQString::number(countFound));
+ text = i18n("%1+").arg(TQString::number(countFound));
} else {
if (countChildsFound > 0)
- text = i18n("%1+%2").tqarg(TQString::number(countFound), TQString::number(countChildsFound));
+ text = i18n("%1+%2").arg(TQString::number(countFound), TQString::number(countChildsFound));
else if (countFound > 0)
text = TQString::number(countFound);
else
@@ -452,21 +452,21 @@ void BasketListViewItem::paintCell(TQPainter *painter, const TQColorGroup &/*col
// Don't forget to update the key computation if parameters
// affecting the rendering logic change
TQString key = TQString("BLVI::pC-%1.%2.%3.%4.%5.%6.%7.%8.%9.%10.%11.%12.%13.%14.%15")
- .tqarg(effectiveWidth)
- .tqarg(drawRoundRect)
- .tqarg(textColor.rgb())
- .tqarg(m_basket->backgroundColor().rgb())
- .tqarg(isCurrentBasket())
- .tqarg(shownBelow && shownBelow->isCurrentBasket())
- .tqarg(shownAbove && shownAbove->isCurrentBasket())
- .tqarg(showLoadingIcon)
- .tqarg(showEncryptedIcon)
- .tqarg(showCountPixmap)
- .tqarg(m_basket->countFounds())
- .tqarg(countHiddenChildsFound())
- .tqarg(m_isUnderDrag)
- .tqarg(m_basket->basketName())
- .tqarg(m_basket->icon());
+ .arg(effectiveWidth)
+ .arg(drawRoundRect)
+ .arg(textColor.rgb())
+ .arg(m_basket->backgroundColor().rgb())
+ .arg(isCurrentBasket())
+ .arg(shownBelow && shownBelow->isCurrentBasket())
+ .arg(shownAbove && shownAbove->isCurrentBasket())
+ .arg(showLoadingIcon)
+ .arg(showEncryptedIcon)
+ .arg(showCountPixmap)
+ .arg(m_basket->countFounds())
+ .arg(countHiddenChildsFound())
+ .arg(m_isUnderDrag)
+ .arg(m_basket->basketName())
+ .arg(m_basket->icon());
if (TQPixmap* cached = TQPixmapCache::find(key)) {
// TQt's documentation recommends copying the pointer
// into a TQPixmap immediately
diff --git a/src/bnpview.cpp b/src/bnpview.cpp
index 50e7811..c20369d 100644
--- a/src/bnpview.cpp
+++ b/src/bnpview.cpp
@@ -1354,7 +1354,7 @@ void BNPView::notesStateChanged()
if (basket->countFounds() != basket->count())
showns = i18n("%n match", "%n matches", basket->countFounds());
setSelectionStatus(
- i18n("e.g. '18 notes, 10 matches, 5 selected'", "%1, %2, %3").tqarg(count, showns, selecteds) );
+ i18n("e.g. '18 notes, 10 matches, 5 selected'", "%1, %2, %3").arg(count, showns, selecteds) );
}
// If we added a note that match the global filter, update the count number in the tree:
@@ -1544,8 +1544,8 @@ TQPopupMenu* BNPView::popupMenu(const TQString &menuName)
"<p>As last ressort, if you are sure the application is correctly installed "
"but you had a preview version of it, try to remove the "
"file %5basketui.rc</p>")
- .tqarg(kapp->aboutData()->programName(), kapp->aboutData()->programName(),
- stdDirs.saveLocation("data", "basket/")).tqarg(stdDirs.saveLocation("data", "basket/"), stdDirs.saveLocation("data", "basket/")),
+ .arg(kapp->aboutData()->programName(), kapp->aboutData()->programName(),
+ stdDirs.saveLocation("data", "basket/")).arg(stdDirs.saveLocation("data", "basket/"), stdDirs.saveLocation("data", "basket/")),
i18n("Ressource not Found"), KMessageBox::AllowLink );
}
if(!isPart())
@@ -1701,13 +1701,13 @@ void BNPView::delBasket()
KMessageBox::createKMessageBox(
dialog, TQMessageBox::Information,
i18n("<qt>Do you really want to remove the basket <b>%1</b> and its contents?</qt>")
- .tqarg(Tools::textToHTMLWithoutP(basket->basketName())),
+ .arg(Tools::textToHTMLWithoutP(basket->basketName())),
basketsList, /*ask=*/"", /*checkboxReturn=*/0, /*options=*/KMessageBox::Notify/*, const TQString &details=TQString()*/);
#endif
int really = KMessageBox::questionYesNo( this,
i18n("<qt>Do you really want to remove the basket <b>%1</b> and its contents?</qt>")
- .tqarg(Tools::textToHTMLWithoutP(basket->basketName())),
+ .arg(Tools::textToHTMLWithoutP(basket->basketName())),
i18n("Remove Basket")
#if KDE_IS_VERSION( 3, 2, 90 ) // KDE 3.3.x
, KGuiItem(i18n("&Remove Basket"), "editdelete"), KStdGuiItem::cancel());
@@ -1721,8 +1721,8 @@ void BNPView::delBasket()
TQStringList basketsList = listViewItemForBasket(basket)->childNamesTree();
if (basketsList.count() > 0) {
int deleteChilds = KMessageBox::questionYesNoList( this,
- i18n("<qt><b>%1</b> have the following tqchildren baskets.<br>Do you want to remove them too?</qt>")
- .tqarg(Tools::textToHTMLWithoutP(basket->basketName())),
+ i18n("<qt><b>%1</b> have the following children baskets.<br>Do you want to remove them too?</qt>")
+ .arg(Tools::textToHTMLWithoutP(basket->basketName())),
basketsList,
i18n("Remove Children Baskets")
#if KDE_IS_VERSION( 3, 2, 90 ) // KDE 3.3.x
@@ -1808,7 +1808,7 @@ void BNPView::saveAsArchive()
int result = KMessageBox::questionYesNoCancel(
this,
"<qt>" + i18n("The file <b>%1</b> already exists. Do you really want to override it?")
- .tqarg(KURL(destination).fileName()),
+ .arg(KURL(destination).fileName()),
i18n("Override File?"),
KGuiItem(i18n("&Override"), "filesave")
);
@@ -1955,7 +1955,7 @@ void BNPView::showPassiveDroppedDelayed()
TQPixmap contentsPixmap = NoteDrag::feedbackPixmap(m_passiveDroppedSelection);
TQMimeSourceFactory::defaultFactory()->setPixmap("_passivepopup_image_", contentsPixmap);
m_passivePopup->setView(
- title.tqarg(Tools::textToHTMLWithoutP(currentBasket()->basketName())),
+ title.arg(Tools::textToHTMLWithoutP(currentBasket()->basketName())),
(contentsPixmap.isNull() ? "" : "<img src=\"_passivepopup_image_\">"),
kapp->iconLoader()->loadIcon(currentBasket()->icon(), KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true));
m_passivePopup->show();
@@ -1967,8 +1967,8 @@ void BNPView::showPassiveImpossible(const TQString &message)
m_passivePopup = new KPassivePopup(Settings::useSystray() ? (TQWidget*)Global::systemTray : (TQWidget*)this);
m_passivePopup->setView(
TQString("<font color=red>%1</font>")
- .tqarg(i18n("Basket <i>%1</i> is locked"))
- .tqarg(Tools::textToHTMLWithoutP(currentBasket()->basketName())),
+ .arg(i18n("Basket <i>%1</i> is locked"))
+ .arg(Tools::textToHTMLWithoutP(currentBasket()->basketName())),
message,
kapp->iconLoader()->loadIcon(currentBasket()->icon(), KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true));
m_passivePopup->show();
@@ -1992,7 +1992,7 @@ void BNPView::showPassiveContent(bool forceShow/* = false*/)
m_passivePopup->setView(
"<qt>" + kapp->makeStdCaption( currentBasket()->isLocked()
? TQString("%1 <font color=gray30>%2</font>")
- .tqarg(Tools::textToHTMLWithoutP(currentBasket()->basketName()), i18n("(Locked)"))
+ .arg(Tools::textToHTMLWithoutP(currentBasket()->basketName()), i18n("(Locked)"))
: Tools::textToHTMLWithoutP(currentBasket()->basketName()) ),
message,
kapp->iconLoader()->loadIcon(currentBasket()->icon(), KIcon::NoGroup, 16, KIcon::DefaultState, 0L, true));
diff --git a/src/crashhandler.cpp b/src/crashhandler.cpp
index bcc72a6..6d5a76c 100644
--- a/src/crashhandler.cpp
+++ b/src/crashhandler.cpp
@@ -82,7 +82,7 @@
"But, all is not lost! You could potentially help us fix the crash. "
"Information describing the crash is below, so just click send, "
"or if you have time, write a brief description of how the crash happened first.\n\n"
- "Many thanks." ).tqarg(kapp->aboutData()->programName()) + "\n\n";
+ "Many thanks." ).arg(kapp->aboutData()->programName()) + "\n\n";
body += "\n\n\n\n\n\n" + i18n(
"The information below is to help the developers identify the problem, "
"please do not modify it." ) + "\n\n\n\n";
@@ -96,9 +96,9 @@
;// "TagLib: %2.%3.%4\n";
/* body = body
- .tqarg( TAGLIB_MAJOR_VERSION )
- .tqarg( TAGLIB_MINOR_VERSION )
- .tqarg( TAGLIB_PATCH_VERSION );*/
+ .arg( TAGLIB_MAJOR_VERSION )
+ .arg( TAGLIB_MINOR_VERSION )
+ .arg( TAGLIB_PATCH_VERSION );*/
#ifdef NDEBUG
body += "NDEBUG: true";
@@ -163,10 +163,10 @@
if( totalFrames > 0 ) {
const double validity = double(validFrames) / totalFrames;
- subject += TQString("[validity: %1]").tqarg( validity, 0, 'f', 2 );
+ subject += TQString("[validity: %1]").arg( validity, 0, 'f', 2 );
if( validity <= 0.5 ) useful = false;
}
- subject += TQString("[frames: %1]").tqarg( totalFrames, 3 /*padding*/ );
+ subject += TQString("[frames: %1]").arg( totalFrames, 3 /*padding*/ );
if( bt.find( TQRegExp(" at \\w*\\.cpp:\\d+\n") ) >= 0 )
subject += "[line numbers]";
@@ -174,7 +174,7 @@
else
useful = false;
-// subject += TQString("[%1]").tqarg( AmarokConfig::soundSystem().remove( TQRegExp("-?engine") ) );
+// subject += TQString("[%1]").arg( AmarokConfig::soundSystem().remove( TQRegExp("-?engine") ) );
// debug() << subject << endl;
@@ -206,7 +206,7 @@
std::cout << ("\n" + i18n( "%1 has crashed! We're sorry about this.\n\n"
"But, all is not lost! Perhaps an upgrade is already available "
"which fixes the problem. Please check your distribution's software repository." )
- .tqarg(kapp->aboutData()->programName())).local8Bit().data() << std::endl;
+ .arg(kapp->aboutData()->programName())).local8Bit().data() << std::endl;
}
//_exit() exits immediately, otherwise this
diff --git a/src/formatimporter.cpp b/src/formatimporter.cpp
index f28df81..a0a24ad 100644
--- a/src/formatimporter.cpp
+++ b/src/formatimporter.cpp
@@ -131,7 +131,7 @@ void FormatImporter::importBaskets()
if (folderName.startsWith("/")) { // It was a folder mirror:
KMessageBox::information(0, i18n("<p>Folder mirroring is not possible anymore (see <a href='http://basket.kde.org/'>basket.kde.org</a> for more information).</p>"
"<p>The folder <b>%1</b> has been copied for the basket needs. You can either delete this folder or delete the basket, or use both. But remember that "
- "modifying one will not modify the other anymore as they are now separate entities.</p>").tqarg(folderName), i18n("Folder Mirror Import"),
+ "modifying one will not modify the other anymore as they are now separate entities.</p>").arg(folderName), i18n("Folder Mirror Import"),
"", KMessageBox::AllowLink);
// Also modify folderName to be only the folder name and not the full path anymore:
TQString newFolderName = folderName;
@@ -259,7 +259,7 @@ TQDomElement FormatImporter::importBasket(const TQString &folderName)
"Name=%2\n"
"Icon=%3\n"
"Encoding=UTF-8\n"
- "Type=Application\n").tqarg(runCommand, title, icon.isEmpty() ? TQString("exec") : icon);
+ "Type=Application\n").arg(runCommand, title, icon.isEmpty() ? TQString("exec") : icon);
TQString launcherFileName = Tools::fileNameForNewFile("launcher.desktop", Global::basketsFolder() + folderName /*+ "/"*/);
TQString launcherFullPath = Global::basketsFolder() + folderName /*+ "/"*/ + launcherFileName;
TQFile file(launcherFullPath);
diff --git a/src/htmlexporter.cpp b/src/htmlexporter.cpp
index 762abe5..64fee0e 100644
--- a/src/htmlexporter.cpp
+++ b/src/htmlexporter.cpp
@@ -63,7 +63,7 @@ HTMLExporter::HTMLExporter(Basket *basket)
int result = KMessageBox::questionYesNoCancel(
0,
"<qt>" + i18n("The file <b>%1</b> already exists. Do you really want to override it?")
- .tqarg(KURL(destination).fileName()),
+ .arg(KURL(destination).fileName()),
i18n("Override File?"),
KGuiItem(i18n("&Override"), "filesave")
);
@@ -111,7 +111,7 @@ void HTMLExporter::prepareExport(Basket *basket, const TQString &fullPath)
withBasketTree = (item->firstChild() != 0);
// Create and empty the files folder:
- TQString filesFolderPath = i18n("HTML export folder (files)", "%1_files").tqarg(filePath) + "/"; // eg.: "/home/seb/foo.html_files/"
+ TQString filesFolderPath = i18n("HTML export folder (files)", "%1_files").arg(filePath) + "/"; // eg.: "/home/seb/foo.html_files/"
Tools::deleteRecursively(filesFolderPath);
TQDir dir;
dir.mkdir(filesFolderPath);
@@ -136,7 +136,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
}
// Compute the absolute & relative paths for this basket:
- filesFolderPath = i18n("HTML export folder (files)", "%1_files").tqarg(filePath) + "/";
+ filesFolderPath = i18n("HTML export folder (files)", "%1_files").arg(filePath) + "/";
if (isSubBasket) {
basketFilePath = basketsFolderPath + basket->folderName().left(basket->folderName().length() - 1) + ".html";
filesFolderName = "../";
@@ -145,7 +145,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
basketsFolderName = "";
} else {
basketFilePath = filePath;
- filesFolderName = i18n("HTML export folder (files)", "%1_files").tqarg(KURL(filePath).fileName()) + "/";
+ filesFolderName = i18n("HTML export folder (files)", "%1_files").arg(KURL(filePath).fileName()) + "/";
dataFolderName = filesFolderName + i18n("HTML export folder (data)", "data") + "/";
dataFolderPath = filesFolderPath + i18n("HTML export folder (data)", "data") + "/";
basketsFolderName = filesFolderName + i18n("HTML export folder (baskets)", "baskets") + "/";
@@ -289,7 +289,7 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
// TODO: Make sure only filtered notes are exported!
// if (decoration()->filterData().isFiltering)
// stream <<
-// " <p>" << i18n("Notes matching the filter &quot;%1&quot;:").tqarg(Tools::textToHTMLWithoutP(decoration()->filterData().string)) << "</p>\n";
+// " <p>" << i18n("Notes matching the filter &quot;%1&quot;:").arg(Tools::textToHTMLWithoutP(decoration()->filterData().string)) << "</p>\n";
stream <<
" <div class=\"basketSurrounder\">\n";
@@ -315,10 +315,10 @@ void HTMLExporter::exportBasket(Basket *basket, bool isSubBasket)
" </div>\n";
stream << TQString(
" </div>\n"
- " <p class=\"credits\">%1</p>\n").tqarg(
+ " <p class=\"credits\">%1</p>\n").arg(
i18n("Made with %1, a KDE tool to take notes and keep information at hand.")
- .tqarg("<a href=\"http://basket.kde.org/\">%1</a> %2")
- .tqarg(kapp->aboutData()->programName(), VERSION));
+ .arg("<a href=\"http://basket.kde.org/\">%1</a> %2")
+ .arg(kapp->aboutData()->programName(), VERSION));
// Copy a transparent GIF image in the folder, needed for the JavaScript hack:
TQString gifFileName = "spacer.gif";
@@ -396,7 +396,7 @@ void HTMLExporter::exportNote(Note *note, int indent)
widthValue = 1;
if (widthValue > 100)
widthValue = 100;
- width = TQString(" width=\"%1%\"").tqarg(TQString::number(widthValue));
+ width = TQString(" width=\"%1%\"").arg(TQString::number(widthValue));
}
stream << spaces.fill(' ', indent) << "<td class=\"column\"" << width << ">\n";
diff --git a/src/kcolorcombo2.cpp b/src/kcolorcombo2.cpp
index eb0bbed..cd57f25 100644
--- a/src/kcolorcombo2.cpp
+++ b/src/kcolorcombo2.cpp
@@ -758,7 +758,7 @@ void KColorCombo2::fontChange(const TQFont &oldFont)
{
// Since the color-rectangle is the same height of the text, we should resize it if the font change:
updateComboBox();
- TQComboBox::fontChange(oldFont); // To update tqgeometry.
+ TQComboBox::fontChange(oldFont); // To update geometry.
}
void KColorCombo2::virtual_hook(int /*id*/, void */*data*/)
diff --git a/src/kgpgme.cpp b/src/kgpgme.cpp
index cc5662e..72a5742 100644
--- a/src/kgpgme.cpp
+++ b/src/kgpgme.cpp
@@ -139,7 +139,7 @@ void KGpgMe::init(gpgme_protocol_t proto)
err = gpgme_engine_check_version(proto);
if(err) {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
- .tqarg(gpgme_strsource(err)).tqarg(gpgme_strerror(err)));
+ .arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
}
@@ -221,7 +221,7 @@ KGpgKeyList KGpgMe::keys(bool privateKeys /* = false */) const
if(err) {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
- .tqarg(gpgme_strsource(err)).tqarg(gpgme_strerror(err)));
+ .arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
else {
result = gpgme_op_keylist_result(m_ctx);
@@ -263,8 +263,8 @@ bool KGpgMe::encrypt(const TQByteArray& inBuffer, TQ_ULONG length,
result = gpgme_op_encrypt_result(m_ctx);
if (result->invalid_recipients) {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
- .tqarg(i18n("That public key is not meant for encryption"))
- .tqarg(result->invalid_recipients->fpr));
+ .arg(i18n("That public key is not meant for encryption"))
+ .arg(result->invalid_recipients->fpr));
}
else {
err = readToBuffer(out, outBuffer);
@@ -276,7 +276,7 @@ bool KGpgMe::encrypt(const TQByteArray& inBuffer, TQ_ULONG length,
}
if(err != GPG_ERR_NO_ERROR && err != GPG_ERR_CANCELED) {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
- .tqarg(gpgme_strsource(err)).tqarg(gpgme_strerror(err)));
+ .arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
if(err != GPG_ERR_NO_ERROR)
clearCache();
@@ -306,8 +306,8 @@ bool KGpgMe::decrypt(const TQByteArray& inBuffer, TQByteArray* outBuffer)
result = gpgme_op_decrypt_result(m_ctx);
if(result->unsupported_algorithm) {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
- .tqarg(i18n("Unsupported algorithm"))
- .tqarg(result->unsupported_algorithm));
+ .arg(i18n("Unsupported algorithm"))
+ .arg(result->unsupported_algorithm));
}
else {
err = readToBuffer(out, outBuffer);
@@ -318,7 +318,7 @@ bool KGpgMe::decrypt(const TQByteArray& inBuffer, TQByteArray* outBuffer)
}
if(err != GPG_ERR_NO_ERROR && err != GPG_ERR_CANCELED) {
KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
- .tqarg(gpgme_strsource(err)).tqarg(gpgme_strerror(err)));
+ .arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
if(err != GPG_ERR_NO_ERROR)
clearCache();
@@ -346,7 +346,7 @@ gpgme_error_t KGpgMe::readToBuffer(gpgme_data_t in, TQByteArray* outBuffer) cons
if(buf) {
while((ret = gpgme_data_read(in, buf, BUF_SIZE)) > 0) {
uint size = outBuffer->size();
- if(outBuffer->tqresize(size + ret))
+ if(outBuffer->resize(size + ret))
memcpy(outBuffer->data() + size, buf, ret);
}
if(ret < 0)
diff --git a/src/kiconcanvas.cpp b/src/kiconcanvas.cpp
index a5d25e5..a96ed6d 100644
--- a/src/kiconcanvas.cpp
+++ b/src/kiconcanvas.cpp
@@ -180,7 +180,7 @@ void KIconCanvas::slotLoadFiles()
// Calling kapp->processEvents() makes the iconview flicker like hell
// (it's being repainted once for every new item), so we don't do this.
- // Instead, we directly tqrepaint the progress bar without going through
+ // Instead, we directly repaint the progress bar without going through
// the event-loop. We do that just once for every 10th item so that
// the progress bar doesn't flicker in turn. (pfeiffer)
// FIXME: TQt4 will have double buffering
diff --git a/src/likeback.cpp b/src/likeback.cpp
index 5690842..ebae729 100644
--- a/src/likeback.cpp
+++ b/src/likeback.cpp
@@ -430,7 +430,7 @@ void LikeBack::showInformationMessage()
"<p><b>" + (isDevelopmentVersion(d->aboutData->version()) ?
i18n("Welcome to this testing version of %1.") :
i18n("Welcome to %1.")
- ).tqarg(d->aboutData->programName()) + "</b></p>"
+ ).arg(d->aboutData->programName()) + "</b></p>"
"<p>" + i18n("To help us improve it, your comments are important.") + "</p>"
"<p>" +
((buttons & LikeBack::Like) && (buttons & LikeBack::Dislike) ?
@@ -740,7 +740,7 @@ LikeBackDialog::~LikeBackDialog()
TQString LikeBackDialog::introductionText()
{
- TQString text = "<p>" + i18n("Please provide a brief description of your opinion of %1.").tqarg(m_likeBack->aboutData()->programName()) + " ";
+ TQString text = "<p>" + i18n("Please provide a brief description of your opinion of %1.").arg(m_likeBack->aboutData()->programName()) + " ";
TQString languagesMessage = "";
if (!m_likeBack->acceptedLocales().isEmpty() && !m_likeBack->acceptedLanguagesMessage().isEmpty()) {
@@ -760,7 +760,7 @@ TQString LikeBackDialog::introductionText()
// TODO: Replace the URL with a localized one:
text += languagesMessage + " " +
i18n("You may be able to use an <a href=\"%1\">online translation tool</a>.")
- .tqarg("http://www.google.com/language_tools?hl=" + KGlobal::locale()->language())
+ .arg("http://www.google.com/language_tools?hl=" + KGlobal::locale()->language())
+ " ";
// If both "I Like" and "I Dislike" buttons are shown and one is clicked:
diff --git a/src/linklabel.cpp b/src/linklabel.cpp
index fa67c54..77d5cd2 100644
--- a/src/linklabel.cpp
+++ b/src/linklabel.cpp
@@ -132,7 +132,7 @@ LinkLook* LinkLook::lookForURL(const KURL &url)
TQString LinkLook::toCSS(const TQString &cssClass, const TQColor &defaultTextColor) const
{
// Set the link class:
- TQString css = TQString(" .%1 a { display: block; width: 100%;").tqarg(cssClass);
+ TQString css = TQString(" .%1 a { display: block; width: 100%;").arg(cssClass);
if (underlineOutside())
css += " text-decoration: underline;";
else
@@ -142,7 +142,7 @@ TQString LinkLook::toCSS(const TQString &cssClass, const TQColor &defaultTextCol
if (m_bold == true)
css += " font-weight: bold;";
TQColor textColor = (color().isValid() || m_useLinkColor ? effectiveColor() : defaultTextColor);
- css += TQString(" color: %1; }\n").tqarg(textColor.name());
+ css += TQString(" color: %1; }\n").arg(textColor.name());
// Set the hover state class:
TQString hover;
@@ -153,12 +153,12 @@ TQString LinkLook::toCSS(const TQString &cssClass, const TQColor &defaultTextCol
if (effectiveHoverColor() != effectiveColor()) {
if (!hover.isEmpty())
hover += " ";
- hover += TQString("color: %4;").tqarg(effectiveHoverColor().name());
+ hover += TQString("color: %4;").arg(effectiveHoverColor().name());
}
// But include it only if it contain a different style than non-hover state:
if (!hover.isEmpty())
- css += TQString(" .%1 a:hover { %2 }\n").tqarg(cssClass, hover);
+ css += TQString(" .%1 a:hover { %2 }\n").arg(cssClass, hover);
return css;
}
@@ -246,7 +246,7 @@ void LinkLabel::setAlign(int hAlign, int vAlign)
if (!m_look)
return;
- // Define tqalignment flags :
+ // Define alignment flags :
//FIXME TODO: Use directly flags !
int hFlag, vFlag, wBreak;
switch (hAlign) {
@@ -540,16 +540,16 @@ TQString LinkDisplay::toHtml(HTMLExporter *exporter, const KURL &url, const TQSt
TQString fullPath = exporter->iconsFolderPath + fileName;
m_preview.save(fullPath, "PNG");
linkIcon = TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" alt=\"\">")
- .tqarg(exporter->iconsFolderName + fileName, TQString::number(m_preview.width()), TQString::number(m_preview.height()));
+ .arg(exporter->iconsFolderName + fileName, TQString::number(m_preview.width()), TQString::number(m_preview.height()));
} else {
linkIcon = exporter->iconsFolderName + exporter->copyIcon(m_icon, m_look->iconSize());
linkIcon = TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" alt=\"\">")
- .tqarg(linkIcon, TQString::number(m_look->iconSize()), TQString::number(m_look->iconSize()));
+ .arg(linkIcon, TQString::number(m_look->iconSize()), TQString::number(m_look->iconSize()));
}
TQString linkTitle = Tools::textToHTMLWithoutP(title.isEmpty() ? m_title : title);
- return TQString("<a href=\"%1\">%2 %3</a>").tqarg(url.prettyURL(), linkIcon, linkTitle);
+ return TQString("<a href=\"%1\">%2 %3</a>").arg(url.prettyURL(), linkIcon, linkTitle);
}
/** LinkLookEditWidget **/
@@ -614,7 +614,7 @@ LinkLookEditWidget::LinkLookEditWidget(KCModule *module, const TQString exTitle,
"<p>If you do not want the application to create notes depending on the content of the files you drop, "
"go to the \"General\" page and uncheck \"Image or animation\" in the \"View Content of Added Files for the Following Types\" group.</p>")
// TODO: Note: you can resize down maximum size of images...
- .tqarg(kapp->aboutData()->programName(), kapp->aboutData()->programName()),
+ .arg(kapp->aboutData()->programName(), kapp->aboutData()->programName()),
this);
gl->addWidget(m_label, 4, 0);
gl->addWidget(m_preview, 4, 1);
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 0e8b5b9..1beee02 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -307,7 +307,7 @@ bool MainWindow::queryClose()
bool MainWindow::askForQuit()
{
- TQString message = i18n("<p>Do you really want to quit %1?</p>").tqarg(kapp->aboutData()->programName());
+ TQString message = i18n("<p>Do you really want to quit %1?</p>").arg(kapp->aboutData()->programName());
if (Settings::useSystray())
message += i18n("<p>Notice that you do not have to quit the application before ending your KDE session. "
"If you end your session while the application is still running, the application will be reloaded the next time you log in.</p>");
diff --git a/src/notecontent.cpp b/src/notecontent.cpp
index 01f56dc..4ba09d1 100644
--- a/src/notecontent.cpp
+++ b/src/notecontent.cpp
@@ -138,7 +138,7 @@ void NoteContent::contentChanged(int newMinWidth)
m_minWidth = newMinWidth;
if (note()) {
// note()->unbufferize();
- note()->requestRetqlayout(); // TODO: It should re-set the width! m_width = 0 ? contentChanged: setWidth, geteight, if size havent changed, only tqrepaint and not retqlayout
+ note()->requestRetqlayout(); // TODO: It should re-set the width! m_width = 0 ? contentChanged: setWidth, geteight, if size havent changed, only repaint and not retqlayout
}
}
@@ -210,7 +210,7 @@ TQString LinkContent::toText(const TQString &/*cuttedFullPath*/)
else if (title().isEmpty())
return url().prettyURL();
else
- return TQString("%1 <%2>").tqarg(title(), url().prettyURL());
+ return TQString("%1 <%2>").arg(title(), url().prettyURL());
}
TQString ColorContent::toText(const TQString &/*cuttedFullPath*/) { return color().name(); }
TQString UnknownContent::toText(const TQString &/*cuttedFullPath*/) { return ""; }
@@ -223,25 +223,25 @@ TQString HtmlContent::toHtml(const TQString &/*imageName*/, const TQString &/*cu
{ return Tools::htmlToParagraph(html()); }
TQString ImageContent::toHtml(const TQString &/*imageName*/, const TQString &cuttedFullPath)
-{ return TQString("<img src=\"%1\">").tqarg(cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath); }
+{ return TQString("<img src=\"%1\">").arg(cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath); }
TQString AnimationContent::toHtml(const TQString &/*imageName*/, const TQString &cuttedFullPath)
-{ return TQString("<img src=\"%1\">").tqarg(cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath); }
+{ return TQString("<img src=\"%1\">").arg(cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath); }
TQString SoundContent::toHtml(const TQString &/*imageName*/, const TQString &cuttedFullPath)
-{ return TQString("<a href=\"%1\">%2</a>").tqarg((cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath), fileName()); } // With the icon?
+{ return TQString("<a href=\"%1\">%2</a>").arg((cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath), fileName()); } // With the icon?
TQString FileContent::toHtml(const TQString &/*imageName*/, const TQString &cuttedFullPath)
-{ return TQString("<a href=\"%1\">%2</a>").tqarg((cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath), fileName()); } // With the icon?
+{ return TQString("<a href=\"%1\">%2</a>").arg((cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath), fileName()); } // With the icon?
TQString LinkContent::toHtml(const TQString &/*imageName*/, const TQString &/*cuttedFullPath*/)
-{ return TQString("<a href=\"%1\">%2</a>").tqarg(url().prettyURL(), title()); } // With the icon?
+{ return TQString("<a href=\"%1\">%2</a>").arg(url().prettyURL(), title()); } // With the icon?
TQString LauncherContent::toHtml(const TQString &/*imageName*/, const TQString &cuttedFullPath)
-{ return TQString("<a href=\"%1\">%2</a>").tqarg((cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath), name()); } // With the icon?
+{ return TQString("<a href=\"%1\">%2</a>").arg((cuttedFullPath.isEmpty() ? fullPath() : cuttedFullPath), name()); } // With the icon?
TQString ColorContent::toHtml(const TQString &/*imageName*/, const TQString &/*cuttedFullPath*/)
-{ return TQString("<span style=\"color: %1\">%2</span>").tqarg(color().name(), color().name()); }
+{ return TQString("<span style=\"color: %1\">%2</span>").arg(color().name(), color().name()); }
TQString UnknownContent::toHtml(const TQString &/*imageName*/, const TQString &/*cuttedFullPath*/)
{ return ""; }
@@ -804,7 +804,7 @@ bool ImageContent::saveToFile()
void ImageContent::toolTipInfos(TQStringList *keys, TQStringList *values)
{
keys->append(i18n("Size"));
- values->append(i18n("%1 by %2 pixels").tqarg(TQString::number(m_pixmap.width()), TQString::number(m_pixmap.height())));
+ values->append(i18n("%1 by %2 pixels").arg(TQString::number(m_pixmap.width()), TQString::number(m_pixmap.height())));
}
TQString ImageContent::messageWhenOpenning(OpenMessage where)
@@ -983,7 +983,7 @@ void AnimationContent::movieStatus(int status)
void AnimationContent::exportToHTML(HTMLExporter *exporter, int /*indent*/)
{
exporter->stream << TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" alt=\"\">")
- .tqarg( exporter->dataFolderName + exporter->copyFile(fullPath(), /*createIt=*/true),
+ .arg( exporter->dataFolderName + exporter->copyFile(fullPath(), /*createIt=*/true),
TQString::number(movie().framePixmap().size().width()),
TQString::number(movie().framePixmap().size().height()) );
}
@@ -1427,7 +1427,7 @@ void LauncherContent::toolTipInfos(TQStringList *keys, TQStringList *values)
TQString exec = service.exec();
if (service.terminal())
- exec = i18n("%1 <i>(run in terminal)</i>").tqarg(exec);
+ exec = i18n("%1 <i>(run in terminal)</i>").arg(exec);
if (!service.comment().isEmpty() && service.comment() != service.name()) {
keys->append(i18n("Comment"));
@@ -1570,10 +1570,10 @@ void ColorContent::toolTipInfos(TQStringList *keys, TQStringList *values)
m_color.getHsv(&hue, &saturation, &value);
keys->append(i18n("RGB Colorspace: Red/Green/Blue", "RGB"));
- values->append(i18n("<i>Red</i>: %1, <i>Green</i>: %2, <i>Blue</i>: %3,").tqarg(TQString::number(m_color.red()), TQString::number(m_color.green()), TQString::number(m_color.blue())));
+ values->append(i18n("<i>Red</i>: %1, <i>Green</i>: %2, <i>Blue</i>: %3,").arg(TQString::number(m_color.red()), TQString::number(m_color.green()), TQString::number(m_color.blue())));
keys->append(i18n("HSV Colorspace: Hue/Saturation/Value", "HSV"));
- values->append(i18n("<i>Hue</i>: %1, <i>Saturation</i>: %2, <i>Value</i>: %3,").tqarg(TQString::number(hue), TQString::number(saturation), TQString::number(value)));
+ values->append(i18n("<i>Hue</i>: %1, <i>Saturation</i>: %2, <i>Value</i>: %3,").arg(TQString::number(hue), TQString::number(saturation), TQString::number(value)));
static TQString cssColors[] = {
"aqua", "00ffff",
@@ -1778,12 +1778,12 @@ void ColorContent::exportToHTML(HTMLExporter *exporter, int /*indent*/)
int rectHeight = (textRect.height() + 2)*3/2;
int rectWidth = rectHeight * 14 / 10; // 1.4 times the height, like A4 papers.
- TQString fileName = /*Tools::fileNameForNewFile(*/TQString(TQString("color_%1.png").tqarg(color().name()).lower().mid(1))/*, exportData.iconsFolderPath)*/;
+ TQString fileName = /*Tools::fileNameForNewFile(*/TQString(TQString("color_%1.png").arg(color().name()).lower().mid(1))/*, exportData.iconsFolderPath)*/;
TQString fullPath = exporter->iconsFolderPath + fileName;
TQPixmap colorIcon = KColorCombo2::colorRectPixmap(color(), /*isDefault=*/false, rectWidth, rectHeight);
colorIcon.save(fullPath, "PNG");
TQString iconHtml = TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" alt=\"\">")
- .tqarg(exporter->iconsFolderName + fileName, TQString::number(colorIcon.width()), TQString::number(colorIcon.height()));
+ .arg(exporter->iconsFolderName + fileName, TQString::number(colorIcon.width()), TQString::number(colorIcon.height()));
exporter->stream << iconHtml + " " + color().name();
}
diff --git a/src/noteedit.cpp b/src/noteedit.cpp
index 056e98e..bdebdb5 100644
--- a/src/noteedit.cpp
+++ b/src/noteedit.cpp
@@ -279,7 +279,7 @@ void HtmlEditor::cursorPositionChanged()
InlineEditors::instance()->richTextItalic->setChecked( textEdit()->italic() );
InlineEditors::instance()->richTextUnderline->setChecked( textEdit()->underline() );
- switch (textEdit()->tqalignment()) {
+ switch (textEdit()->alignment()) {
default:
case 1/*TQt::AlignLeft*/: InlineEditors::instance()->richTextLeft->setChecked(true); break;
case 4/*TQt::AlignCenter*/: InlineEditors::instance()->richTextCenter->setChecked(true); break;
@@ -560,7 +560,7 @@ LinkEditDialog::LinkEditDialog(LinkContent *contentNote, TQWidget *parent/*, TQK
/* Icon button: */
m_icon->setIcon(m_noteContent->icon());
int minSize = m_autoIcon->sizeHint().height();
- // Make the icon button at least the same heigh than the other buttons for a better tqalignment (nicer to the eyes):
+ // Make the icon button at least the same heigh than the other buttons for a better alignment (nicer to the eyes):
if (m_icon->sizeHint().height() < minSize)
m_icon->setFixedSize(minSize, minSize);
else
@@ -678,7 +678,7 @@ void LinkEditDialog::slotOk()
m_icon->setIconSize(linkLook->iconSize()); // So I store it's name and reload it after size change !
m_icon->setIcon(icon);
int minSize = m_autoIcon->sizeHint().height();
- // Make the icon button at least the same heigh than the other buttons for a better tqalignment (nicer to the eyes):
+ // Make the icon button at least the same heigh than the other buttons for a better alignment (nicer to the eyes):
if (m_icon->sizeHint().height() < minSize)
m_icon->setFixedSize(minSize, minSize);
else
@@ -712,7 +712,7 @@ LauncherEditDialog::LauncherEditDialog(LauncherContent *contentNote, TQWidget *p
/* Icon button: */
m_icon->setIcon(service.icon());
int minSize = guessButton->sizeHint().height();
- // Make the icon button at least the same heigh than the other buttons for a better tqalignment (nicer to the eyes):
+ // Make the icon button at least the same heigh than the other buttons for a better alignment (nicer to the eyes):
if (m_icon->sizeHint().height() < minSize)
m_icon->setFixedSize(minSize, minSize);
else
diff --git a/src/notefactory.cpp b/src/notefactory.cpp
index 6292cef..f35728b 100644
--- a/src/notefactory.cpp
+++ b/src/notefactory.cpp
@@ -264,7 +264,7 @@ TQString NoteFactory::createNoteLauncherFile(const TQString &command, const TQSt
"Name=%2\n"
"Icon=%3\n"
"Encoding=UTF-8\n"
- "Type=Application\n").tqarg(command, name, icon.isEmpty() ? TQString("exec") : icon);
+ "Type=Application\n").arg(command, name, icon.isEmpty() ? TQString("exec") : icon);
TQString fileName = fileNameForNewNote(parent, "launcher.desktop");
TQString fullPath = parent->fullPathForFileName(fileName);
// parent->dontCareOfCreation(fullPath);
@@ -445,7 +445,7 @@ Note* NoteFactory::dropNote(TQMimeSource *source, Basket *parent, bool fromDrop,
TQString message = i18n("<p>%1 doesn't support the data you've dropped.<br>"
"It however created a generic note, allowing you to drag or copy it to an application that understand it.</p>"
"<p>If you want the support of these data, please contact developer or visit the "
- "<a href=\"http://basket.kde.org/dropdb.php\">BasKet Drop Database</a>.</p>").tqarg(kapp->aboutData()->programName());
+ "<a href=\"http://basket.kde.org/dropdb.php\">BasKet Drop Database</a>.</p>").arg(kapp->aboutData()->programName());
KMessageBox::information(parent, message, i18n("Unsupported MIME Type(s)"),
"unsupportedDropInfo", KMessageBox::AllowLink);
return note;
@@ -682,7 +682,7 @@ Note* NoteFactory::copyFileAndLoad(const KURL &url, Basket *parent)
if (Global::debugWindow)
*Global::debugWindow << "copyFileAndLoad: " + url.prettyURL() + " to " + fullPath;
-// TQString annotations = i18n("Original file: %1").tqarg(url.prettyURL());
+// TQString annotations = i18n("Original file: %1").arg(url.prettyURL());
// parent->dontCareOfCreation(fullPath);
@@ -710,7 +710,7 @@ Note* NoteFactory::moveFileAndLoad(const KURL &url, Basket *parent)
if (Global::debugWindow)
*Global::debugWindow << "moveFileAndLoad: " + url.prettyURL() + " to " + fullPath;
-// TQString annotations = i18n("Original file: %1").tqarg(url.prettyURL());
+// TQString annotations = i18n("Original file: %1").arg(url.prettyURL());
// parent->dontCareOfCreation(fullPath);
diff --git a/src/password.cpp b/src/password.cpp
index b7b3f12..28862e0 100644
--- a/src/password.cpp
+++ b/src/password.cpp
@@ -97,7 +97,7 @@ Password::Password(TQWidget *parent, const char *name)
for(KGpgKeyList::iterator it = list.begin(); it != list.end(); ++it) {
TQString name = gpg.checkForUtf8((*it).name);
- keyCombo->insertItem(TQString("%1 <%2> %3").tqarg(name).tqarg((*it).email).tqarg((*it).id));
+ keyCombo->insertItem(TQString("%1 <%2> %3").arg(name).arg((*it).email).arg((*it).id));
}
publicPrivateRadioButton->setEnabled(keyCombo->count() > 0);
keyCombo->setEnabled(keyCombo->count() > 0);
diff --git a/src/qeffects.cpp b/src/qeffects.cpp
index 7c2dd0b..28fdb83 100644
--- a/src/qeffects.cpp
+++ b/src/qeffects.cpp
@@ -108,7 +108,7 @@ void TQAlphaWidget::run( int time )
widget->setWState( WState_Visible );
- move( widget->tqgeometry().x(),widget->tqgeometry().y() );
+ move( widget->geometry().x(),widget->geometry().y() );
resize( widget->size().width(), widget->size().height() );
front = TQImage( widget->size(), 32 );
@@ -116,8 +116,8 @@ void TQAlphaWidget::run( int time )
back = TQImage( widget->size(), 32 );
back = TQPixmap::grabWindow( TQApplication::desktop()->winId(),
- widget->tqgeometry().x(), widget->tqgeometry().y(),
- widget->tqgeometry().width(), widget->tqgeometry().height() );
+ widget->geometry().x(), widget->geometry().y(),
+ widget->geometry().width(), widget->geometry().height() );
if ( !back.isNull() && checkTime.elapsed() < duration / 2 ) {
mixed = back.copy();
@@ -142,7 +142,7 @@ bool TQAlphaWidget::eventFilter( TQObject* o, TQEvent* e )
case TQEvent::Move:
if ( o != widget )
break;
- move( widget->tqgeometry().x(),widget->tqgeometry().y() );
+ move( widget->geometry().x(),widget->geometry().y() );
update();
break;
case TQEvent::Hide:
@@ -251,7 +251,7 @@ void TQAlphaWidget::render()
widget->clearWState( WState_ForceHide );
alphaBlend();
pm = mixed;
- tqrepaint( FALSE );
+ repaint( FALSE );
}
}
@@ -348,7 +348,7 @@ bool TQRollEffect::eventFilter( TQObject* o, TQEvent* e )
case TQEvent::Move:
if ( o != widget )
break;
- move( widget->tqgeometry().x(),widget->tqgeometry().y() );
+ move( widget->geometry().x(),widget->geometry().y() );
update();
break;
case TQEvent::Hide:
@@ -438,7 +438,7 @@ void TQRollEffect::run( int time )
widget->setWState( WState_Visible );
- move( widget->tqgeometry().x(),widget->tqgeometry().y() );
+ move( widget->geometry().x(),widget->geometry().y() );
resize( TQMIN( currentWidth, totalWidth ), TQMIN( currentHeight, totalHeight ) );
show();
@@ -484,8 +484,8 @@ void TQRollEffect::scroll()
int w = totalWidth;
int h = totalHeight;
- int x = widget->tqgeometry().x();
- int y = widget->tqgeometry().y();
+ int x = widget->geometry().x();
+ int y = widget->geometry().y();
if ( orientation & RightScroll || orientation & LeftScroll )
w = TQMIN( currentWidth, totalWidth );
@@ -494,15 +494,15 @@ void TQRollEffect::scroll()
setUpdatesEnabled( FALSE );
if ( orientation & UpScroll )
- y = widget->tqgeometry().y() + TQMAX( 0, totalHeight - currentHeight );
+ y = widget->geometry().y() + TQMAX( 0, totalHeight - currentHeight );
if ( orientation & LeftScroll )
- x = widget->tqgeometry().x() + TQMAX( 0, totalWidth - currentWidth );
+ x = widget->geometry().x() + TQMAX( 0, totalWidth - currentWidth );
if ( orientation & UpScroll || orientation & LeftScroll )
move( x, y );
resize( w, h );
setUpdatesEnabled( TRUE );
- tqrepaint( FALSE );
+ repaint( FALSE );
}
if ( done ) {
anim.stop();
diff --git a/src/regiongrabber.cpp b/src/regiongrabber.cpp
index 8f723a4..4c4d9ca 100644
--- a/src/regiongrabber.cpp
+++ b/src/regiongrabber.cpp
@@ -43,8 +43,8 @@ SizeTip::SizeTip( TQWidget *parent, const char *name )
void SizeTip::setTip( const TQRect &rect )
{
- TQString tip = TQString( "%1x%2" ).tqarg( rect.width() )
- .tqarg( rect.height() );
+ TQString tip = TQString( "%1x%2" ).arg( rect.width() )
+ .arg( rect.height() );
setText( tip );
adjustSize();
@@ -54,7 +54,7 @@ void SizeTip::setTip( const TQRect &rect )
void SizeTip::positionTip( const TQRect &rect )
{
- TQRect tipRect = tqgeometry();
+ TQRect tipRect = geometry();
tipRect.moveTopLeft( TQPoint( 0, 0 ) );
if ( rect.intersects( tipRect ) )
@@ -63,7 +63,7 @@ void SizeTip::positionTip( const TQRect &rect )
tipRect.moveCenter( TQPoint( deskR.width()/2, deskR.height()/2 ) );
if ( !rect.contains( tipRect, true ) && rect.intersects( tipRect ) )
- tipRect.moveBottomRight( tqgeometry().bottomRight() );
+ tipRect.moveBottomRight( geometry().bottomRight() );
}
move( tipRect.topLeft() );
@@ -94,7 +94,7 @@ void RegionGrabber::initGrabber()
TQDesktopWidget desktopWidget;
TQRect desktopSize;
if ( desktopWidget.isVirtualDesktop() )
- desktopSize = desktopWidget.tqgeometry();
+ desktopSize = desktopWidget.geometry();
else
desktopSize = desktopWidget.screenGeometry( qt_xrootwin() );
diff --git a/src/settings.cpp b/src/settings.cpp
index ce25ef0..9195324 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -394,7 +394,7 @@ GeneralPage::GeneralPage(TQWidget * parent, const char * name)
"on that icon to paste the current selection.") + "</p>" +
"<p>" + i18n("When doing so, %1 pops up a little balloon message to inform you the action has been successfully done. You can disable that balloon.") + "</p>" +
"<p>" + i18n("Note that those messages are smart enough to not appear if the main window is visible. This is because you already see the result of your actions in the main window.") + "</p>")
- .tqarg(kapp->aboutData()->programName()),
+ .arg(kapp->aboutData()->programName()),
this);
hLay->addWidget(m_usePassivePopup);
hLay->addWidget(hLabel);
@@ -798,7 +798,7 @@ NotesAppearancePage::NotesAppearancePage(TQWidget * parent, const char * name)
m_fileLook = new LinkLookEditWidget(this, i18n("Annual report"), "document", tabs);
m_localLinkLook = new LinkLookEditWidget(this, i18n("Home folder"), "folder_home", tabs);
m_networkLinkLook = new LinkLookEditWidget(this, "www.kde.org", KMimeType::iconForURL("http://www.kde.org"), tabs);
- m_launcherLook = new LinkLookEditWidget(this, i18n("Launch %1").tqarg(kapp->aboutData()->programName()), "basket", tabs);
+ m_launcherLook = new LinkLookEditWidget(this, i18n("Launch %1").arg(kapp->aboutData()->programName()), "basket", tabs);
tabs->addTab(m_soundLook, i18n("&Sounds") );
tabs->addTab(m_fileLook, i18n("&Files") );
tabs->addTab(m_localLinkLook, i18n("&Local Links") );
diff --git a/src/softwareimporters.cpp b/src/softwareimporters.cpp
index 24a20ed..84dd628 100644
--- a/src/softwareimporters.cpp
+++ b/src/softwareimporters.cpp
@@ -491,7 +491,7 @@ void SoftwareImporters::importTextFile()
);
// First create a basket for it:
- TQString title = i18n("From TextFile.txt", "From %1").tqarg(KURL(fileName).fileName());
+ TQString title = i18n("From TextFile.txt", "From %1").arg(KURL(fileName).fileName());
BasketFactory::newBasket(/*icon=*/"txt", title, /*backgroundImage=*/"", /*backgroundColor=*/TQColor(), /*textColor=*/TQColor(), /*templateName=*/"1column", /*createIn=*/0);
Basket *basket = Global::bnpView->currentBasket();
basket->load();
diff --git a/src/systemtray.cpp b/src/systemtray.cpp
index 6e2f364..118d449 100644
--- a/src/systemtray.cpp
+++ b/src/systemtray.cpp
@@ -139,7 +139,7 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu)
TQString message = i18n(
"<p>Closing the main window will keep %1 running in the system tray. "
"Use <b>Quit</b> from the <b>Basket</b> menu to quit the application.</p>"
- ).tqarg(KGlobal::instance()->aboutData()->programName());
+ ).arg(KGlobal::instance()->aboutData()->programName());
// We are sure the systray icon is visible: ouf!
if (useSystray) {
// Compute size and position of the pixmap to be grabbed:
@@ -433,7 +433,7 @@ void SystemTray::updateToolTipDelayed()
TQString tip = "<p><nobr>" + ( basket->isLocked() ? kapp->makeStdCaption(i18n("%1 (Locked)"))
: kapp->makeStdCaption( "%1") )
- .tqarg(Tools::textToHTMLWithoutP(basket->basketName()));
+ .arg(Tools::textToHTMLWithoutP(basket->basketName()));
TQToolTip::add(this, tip);
}
diff --git a/src/tag.cpp b/src/tag.cpp
index 7af9db1..700b88e 100644
--- a/src/tag.cpp
+++ b/src/tag.cpp
@@ -77,7 +77,7 @@ TQString State::fullName()
{
if (!parentTag() || parentTag()->states().count() == 1)
return (name().isEmpty() && parentTag() ? parentTag()->name() : name());
- return TQString(i18n("%1: %2")).tqarg(parentTag()->name(), name());
+ return TQString(i18n("%1: %2")).arg(parentTag()->name(), name());
}
TQFont State::font(TQFont base)
@@ -541,9 +541,9 @@ void Tag::createDefaultTagsSet(const TQString &fullPath)
" </state>\n"
" </tag>\n"
"\n")
- .tqarg( i18n("To Do"), i18n("Unchecked"), i18n("Done") ) // %1 %2 %3
- .tqarg( i18n("Progress"), i18n("0 %"), i18n("25 %") ) // %4 %5 %6
- .tqarg( i18n("50 %"), i18n("75 %"), i18n("100 %") ) // %7 %8 %9
+ .arg( i18n("To Do"), i18n("Unchecked"), i18n("Done") ) // %1 %2 %3
+ .arg( i18n("Progress"), i18n("0 %"), i18n("25 %") ) // %4 %5 %6
+ .arg( i18n("50 %"), i18n("75 %"), i18n("100 %") ) // %7 %8 %9
+ TQString(
" <tag>\n"
" <name>%1</name>\n" // "Priority"
@@ -596,9 +596,9 @@ void Tag::createDefaultTagsSet(const TQString &fullPath)
" </state>\n"
" </tag>\n"
"\n")
- .tqarg( i18n("Priority"), i18n("Low"), i18n("Medium") ) // %1 %2 %3
- .tqarg( i18n("High"), i18n("Preference"), i18n("Bad") ) // %4 %5 %6
- .tqarg( i18n("Good"), i18n("Excellent"), i18n("Highlight") ) // %7 %8 %9
+ .arg( i18n("Priority"), i18n("Low"), i18n("Medium") ) // %1 %2 %3
+ .arg( i18n("High"), i18n("Preference"), i18n("Bad") ) // %4 %5 %6
+ .arg( i18n("Good"), i18n("Excellent"), i18n("Highlight") ) // %7 %8 %9
+ TQString(
" <tag>\n"
" <name>%1</name>\n" // "Important"
@@ -664,9 +664,9 @@ void Tag::createDefaultTagsSet(const TQString &fullPath)
" </state>\n"
" </tag>""\n"
"\n")
- .tqarg( i18n("Important"), i18n("Very Important"), i18n("Information") ) // %1 %2 %3
- .tqarg( i18n("Idea"), i18n("The initial of 'Idea'", "I."), i18n("Title") ) // %4 %5 %6
- .tqarg( i18n("Code"), i18n("Work"), i18n("The initial of 'Work'", "W.") ) // %7 %8 %9
+ .arg( i18n("Important"), i18n("Very Important"), i18n("Information") ) // %1 %2 %3
+ .arg( i18n("Idea"), i18n("The initial of 'Idea'", "I."), i18n("Title") ) // %4 %5 %6
+ .arg( i18n("Code"), i18n("Work"), i18n("The initial of 'Work'", "W.") ) // %7 %8 %9
+ TQString(
" <tag>\n"
" <state id=\"personal\">\n"
@@ -684,7 +684,7 @@ void Tag::createDefaultTagsSet(const TQString &fullPath)
" </tag>\n"
"</basketTags>\n"
"")
- .tqarg( i18n("Personal"), i18n("The initial of 'Personal'", "P."), i18n("Funny") ); // %1 %2 %3
+ .arg( i18n("Personal"), i18n("The initial of 'Personal'", "P."), i18n("Funny") ); // %1 %2 %3
// Write to Disk:
TQFile file(fullPath);
diff --git a/src/tagsedit.cpp b/src/tagsedit.cpp
index 21ec672..ff6a6eb 100644
--- a/src/tagsedit.cpp
+++ b/src/tagsedit.cpp
@@ -204,7 +204,7 @@ void TagListViewItem::setup()
State *state = (m_tagCopy ? m_tagCopy->stateCopies[0]->newState : m_stateCopy->newState);
if (m_tagCopy && !m_tagCopy->newTag->shortcut().isNull())
- text = i18n("Tag name (shortcut)", "%1 (%2)").tqarg(text, m_tagCopy->newTag->shortcut().toString());
+ text = i18n("Tag name (shortcut)", "%1 (%2)").arg(text, m_tagCopy->newTag->shortcut().toString());
TQFont font = state->font(listView()->font());
@@ -214,7 +214,7 @@ void TagListViewItem::setup()
int height = TAG_MARGIN + TQMAX(TAG_ICON_SIZE, textRect.height()) + TAG_MARGIN;
setHeight(height);
- tqrepaint();
+ repaint();
}
void TagListViewItem::paintCell(TQPainter *painter, const TQColorGroup &/*colorGroup*/, int /*column*/, int width, int /*align*/)
@@ -224,7 +224,7 @@ void TagListViewItem::paintCell(TQPainter *painter, const TQColorGroup &/*colorG
State *state = (m_tagCopy ? m_tagCopy->stateCopies[0]->newState : m_stateCopy->newState);
if (m_tagCopy && !m_tagCopy->newTag->shortcut().isNull())
- text = i18n("Tag name (shortcut)", "%1 (%2)").tqarg(text, m_tagCopy->newTag->shortcut().toString());
+ text = i18n("Tag name (shortcut)", "%1 (%2)").arg(text, m_tagCopy->newTag->shortcut().toString());
TQFont font = (withIcon ? state->font(listView()->font()) : listView()->font());
diff --git a/src/variouswidgets.cpp b/src/variouswidgets.cpp
index f212721..529a961 100644
--- a/src/variouswidgets.cpp
+++ b/src/variouswidgets.cpp
@@ -144,7 +144,7 @@ ViewSizeDialog::~ViewSizeDialog()
void ViewSizeDialog::resizeEvent(TQResizeEvent *)
{
- setCaption( i18n("%1 by %2 pixels").tqarg(TQString::number(width())).tqarg(TQString::number(height())) );
+ setCaption( i18n("%1 by %2 pixels").arg(TQString::number(width())).arg(TQString::number(height())) );
m_sizeGrip->move( width() - m_sizeGrip->width(), height() - m_sizeGrip->height() );
}