Replaced various '#define' with actual strings - part 4

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/15/head
Michele Calgaro 6 months ago
parent 4bbccf7d67
commit dbf84303c4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -336,7 +336,7 @@ void Controller::goEntrySibling(EntryDirection dir_) {
return; return;
} }
// find the widget that has an entry selected // find the widget that has an entry selected
GUI::ListView* view = ::tqqt_cast<GUI::ListView*>(m_widgetWithSelection); GUI::ListView* view = ::tqt_cast<GUI::ListView*>(m_widgetWithSelection);
if(!view) { if(!view) {
return; return;
} }

@ -100,7 +100,7 @@ bool DropHandler::handleURL(const KURL::List& urls_) {
hasUnknown = true; hasUnknown = true;
} }
} }
MainWindow* mainWindow = ::tqqt_cast<MainWindow*>(Kernel::self()->widget()); MainWindow* mainWindow = ::tqt_cast<MainWindow*>(Kernel::self()->widget());
if(!mainWindow) { if(!mainWindow) {
myDebug() << "DropHandler::handleURL() - no main window!" << endl; myDebug() << "DropHandler::handleURL() - no main window!" << endl;
return !hasUnknown; return !hasUnknown;

@ -289,7 +289,7 @@ void EntryIconView::slotShowContextMenu(TQIconViewItem* item_, const TQPoint& po
} }
void EntryIconView::slotSortMenuActivated(int id_) { void EntryIconView::slotSortMenuActivated(int id_) {
const TDEPopupMenu* menu = ::tqqt_cast<TDEPopupMenu*>(sender()); const TDEPopupMenu* menu = ::tqt_cast<TDEPopupMenu*>(sender());
if(menu) { if(menu) {
TQString title = menu->text(id_); TQString title = menu->text(id_);
Data::FieldPtr f = m_coll->fieldByTitle(title); Data::FieldPtr f = m_coll->fieldByTitle(title);

@ -2276,7 +2276,7 @@ void MainWindow::updateCollectionActions() {
} }
void MainWindow::updateEntrySources() { void MainWindow::updateEntrySources() {
TQSignalMapper* mapper = ::tqqt_cast<TQSignalMapper*>(child("update_mapper")); TQSignalMapper* mapper = ::tqt_cast<TQSignalMapper*>(child("update_mapper"));
if(!mapper) { if(!mapper) {
kdWarning() << "MainWindow::updateEntrySources() - no update mapper!" << endl; kdWarning() << "MainWindow::updateEntrySources() - no update mapper!" << endl;
return; return;

@ -395,7 +395,7 @@ void Manager::slotDownloadJobResult(TDEIO::Job* job_) {
} }
void Manager::slotInstallFinished() { void Manager::slotInstallFinished() {
const NewScript* newScript = ::tqqt_cast<const NewScript*>(sender()); const NewScript* newScript = ::tqt_cast<const NewScript*>(sender());
if(newScript && newScript->successfulInstall()) { if(newScript && newScript->successfulInstall()) {
const TQString name = m_urlNameMap[newScript->url()]; const TQString name = m_urlNameMap[newScript->url()];
KNS::Entry* entry = m_scriptEntryMap[newScript]; KNS::Entry* entry = m_scriptEntryMap[newScript];

Loading…
Cancel
Save