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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/428/head
Michele Calgaro 5 months ago
parent 36f2e08fd3
commit 82c1dbe490
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -257,7 +257,7 @@ void ToolView::childEvent ( TQChildEvent *ev )
{
// set the widget to be focus proxy if possible
if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->tqt_cast("TQWidget")) {
setFocusProxy (::tqqt_cast<TQWidget*>(TQT_TQOBJECT(ev->child())));
setFocusProxy (::tqt_cast<TQWidget*>(TQT_TQOBJECT(ev->child())));
}
TQVBox::childEvent (ev);

@ -434,7 +434,7 @@ void KDisplayConfig::updateDraggableMonitorInformationInternal (int monitor_id,
monitors = base->monitorPhyArrange->childrenListObject();
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
DraggableMonitor *monitor = static_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )));
if (monitor->screen_id == monitor_id) {
moved_monitor = monitor;
@ -475,7 +475,7 @@ void KDisplayConfig::updateDraggableMonitorInformationInternal (int monitor_id,
primary_monitor = NULL;
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
DraggableMonitor *monitor = static_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )));
if (monitor->screen_id == j) {
monitor->is_primary = true; // Prevent dragging of the primary monitor
@ -548,7 +548,7 @@ bool KDisplayConfig::applyMonitorLayoutRules(DraggableMonitor* monitor_to_move)
monitors = base->monitorPhyArrange->childrenListObject();
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
DraggableMonitor *monitor = static_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )));
if (monitor != monitor_to_move) {
other_monitors = other_monitors.unite(MonitorRegion(monitor->geometry()));
@ -592,7 +592,7 @@ bool KDisplayConfig::applyMonitorLayoutRules(DraggableMonitor* monitor_to_move)
monitors = base->monitorPhyArrange->childrenListObject();
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
DraggableMonitor *monitor = static_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )));
if (monitor != monitor_to_move) {
other_monitors2 = other_monitors2.unite(MonitorRegion(monitor->geometry()));
@ -641,7 +641,7 @@ void KDisplayConfig::moveMonitor(DraggableMonitor* monitor, int realx, int realy
primary_monitor = NULL;
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
DraggableMonitor *monitor = static_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )));
if (monitor->screen_id == j) {
monitor->is_primary = true; // Prevent dragging of the primary monitor
@ -1329,7 +1329,7 @@ void KDisplayConfig::updateDragDropDisplay() {
monitors = base->monitorPhyArrange->childrenListObject();
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
TQWidget *monitor = TQT_TQWIDGET(monitors.at( i ));
if ( !monitor->close(TRUE) ) {
Q_ASSERT("zombie monitor will not go away!");
@ -1381,7 +1381,7 @@ void KDisplayConfig::layoutDragDropDisplay() {
monitors = base->monitorPhyArrange->childrenListObject();
if ( monitors.count() ) {
for ( i = 0; i < int(monitors.count()); ++i ) {
if (::tqqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
if (::tqt_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )))) {
DraggableMonitor *monitor = static_cast<DraggableMonitor*>(TQT_TQWIDGET(monitors.at( i )));
screendata = m_screenInfoArray[activeProfileName].at(monitor->screen_id);
moveMonitor(monitor, screendata->absolute_x_position, screendata->absolute_y_position);

@ -74,7 +74,7 @@ KParts::ReadOnlyPart *KonqViewFactory::create( TQWidget *parentWidget, const cha
kdError(1202) << "Part " << obj << " (" << obj->className() << ") doesn't inherit KParts::ReadOnlyPart !" << endl;
KParts::ReadOnlyPart* part = static_cast<KParts::ReadOnlyPart *>( obj );
TQFrame* frame = ::tqqt_cast<TQFrame*>( part->widget() );
TQFrame* frame = ::tqt_cast<TQFrame*>( part->widget() );
if (frame)
{
frame->setFrameStyle( TQFrame::NoFrame );

@ -1189,9 +1189,9 @@ void KonqMainWindow::slotCreateNewWindow( const KURL &url, const KParts::URLArgs
{
KParts::BrowserHostExtension *hostExtension = 0;
KParts::ReadOnlyPart *ro_part = 0L;
KParts::BrowserExtension *be = ::tqqt_cast<KParts::BrowserExtension *>(sender());
KParts::BrowserExtension *be = ::tqt_cast<KParts::BrowserExtension *>(sender());
if (be)
ro_part = ::tqqt_cast<KParts::ReadOnlyPart *>(be->parent());
ro_part = ::tqt_cast<KParts::ReadOnlyPart *>(be->parent());
if ( findChildView( ro_part, args.frameName, &mainWindow, &hostExtension, &part ) )
{
// Found a view. If url isn't empty, we should open it - but this never happens currently
@ -4839,7 +4839,7 @@ void KonqMainWindow::slotPopupMenu( KXMLGUIClient *client, const TQPoint &_globa
if ( client )
pPopupMenu->factory()->addClient( client );
KParts::BrowserExtension *be = ::tqqt_cast<KParts::BrowserExtension *>(sender());
KParts::BrowserExtension *be = ::tqt_cast<KParts::BrowserExtension *>(sender());
if ( be )
{
@ -4905,7 +4905,7 @@ void KonqMainWindow::slotPopupMenu( KXMLGUIClient *client, const TQPoint &_globa
}
// Special case: RMB + renaming in sidebar; setFocus would abort editing.
TQWidget* fw = focusWidget();
if ( !fw || !::tqqt_cast<TQLineEdit*>( fw ) )
if ( !fw || !::tqt_cast<TQLineEdit*>( fw ) )
m_oldView->part()->widget()->setFocus();
}
}

@ -425,7 +425,7 @@ void MediaNotifier::slotFreeCancel()
void MediaNotifier::slotFreeFinished( KMessageBox::ButtonCode res )
{
TQCheckBox *checkbox = ::tqqt_cast<TQCheckBox*>( m_freeDialog->child( 0, "TQCheckBox" ) );
TQCheckBox *checkbox = ::tqt_cast<TQCheckBox*>( m_freeDialog->child( 0, "TQCheckBox" ) );
if ( checkbox && checkbox->isChecked() )
KMessageBox::saveDontShowAgainYesNo("dontagainfreespace", res);
m_freeDialog->delayedDestruct();

@ -232,7 +232,7 @@ KdmItem::setWidget( TQWidget *widget )
myWidget->show();
// Remove borders so that it blends nicely with the theme background
TQFrame* frame = ::tqqt_cast<TQFrame *>( widget );
TQFrame* frame = ::tqt_cast<TQFrame *>( widget );
if (frame)
frame->setFrameStyle( TQFrame::NoFrame );

@ -203,7 +203,7 @@ void KCommonDecoration::updateLayout() const
if (*it) {
if (!(*it)->isHidden() ) {
moveWidget(x,y, *it);
x += layoutMetric(LM_ButtonWidth, true, ::tqqt_cast<KCommonDecorationButton*>(*it) );
x += layoutMetric(LM_ButtonWidth, true, ::tqt_cast<KCommonDecorationButton*>(*it) );
elementLayouted = true;
}
} else {
@ -226,7 +226,7 @@ void KCommonDecoration::updateLayout() const
if (*it) {
if (!(*it)->isHidden() ) {
moveWidget(x,y, *it);
x += layoutMetric(LM_ButtonWidth, true, ::tqqt_cast<KCommonDecorationButton*>(*it) );;
x += layoutMetric(LM_ButtonWidth, true, ::tqt_cast<KCommonDecorationButton*>(*it) );;
elementLayouted = true;
}
} else {

Loading…
Cancel
Save