summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/popupmenueditor.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:36:08 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-23 19:35:08 +0200
commit1c082a5ba751ddd4edd36bb0061462f9a999f88d (patch)
treee58e00b13f367e1eb92dc92b6dfbc69065226b80 /kdevdesigner/designer/popupmenueditor.cpp
parentc51913a8c885131a350d3fcda9715699b0467306 (diff)
downloadtdevelop-1c082a5ba751ddd4edd36bb0061462f9a999f88d.tar.gz
tdevelop-1c082a5ba751ddd4edd36bb0061462f9a999f88d.zip
Rename old tq methods that no longer need a unique name
(cherry picked from commit c3b301575a98e4c3505ad95534d6192b65539dab)
Diffstat (limited to 'kdevdesigner/designer/popupmenueditor.cpp')
-rw-r--r--kdevdesigner/designer/popupmenueditor.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdevdesigner/designer/popupmenueditor.cpp b/kdevdesigner/designer/popupmenueditor.cpp
index 7770dcda..c9575f23 100644
--- a/kdevdesigner/designer/popupmenueditor.cpp
+++ b/kdevdesigner/designer/popupmenueditor.cpp
@@ -80,7 +80,7 @@ bool PopupMenuEditorItemPtrDrag::canDecode( TQDragMoveEvent * e )
bool PopupMenuEditorItemPtrDrag::decode( TQDropEvent * e, PopupMenuEditorItem ** i )
{
- TQByteArray data = e->tqencodedData( "qt/popupmenueditoritemptr" );
+ TQByteArray data = e->encodedData( "qt/popupmenueditoritemptr" );
TQDataStream stream( data, IO_ReadOnly );
if ( !data.size() )
@@ -170,7 +170,7 @@ PopupMenuEditorItem::ItemType PopupMenuEditorItem::type() const
void PopupMenuEditorItem::setVisible( bool enable )
{
if ( a )
- a->tqsetVisible( enable );
+ a->setVisible( enable );
}
bool PopupMenuEditorItem::isVisible() const
@@ -730,7 +730,7 @@ void PopupMenuEditor::paintEvent( TQPaintEvent * )
rect().width() - borderSize * 2, rect().height() - borderSize * 2 );
reg -= mid;
p.setClipRegion( reg );
- tqstyle().tqdrawPrimitive( TQStyle::PE_PanelPopup, &p, rect(), tqcolorGroup() );
+ tqstyle().tqdrawPrimitive( TQStyle::PE_PanelPopup, &p, rect(), colorGroup() );
p.restore();
drawItems( &p );
}
@@ -1011,7 +1011,7 @@ void PopupMenuEditor::focusInEvent( TQFocusEvent * )
void PopupMenuEditor::focusOutEvent( TQFocusEvent * )
{
- TQWidget * fw = tqApp->tqfocusWidget();
+ TQWidget * fw = tqApp->focusWidget();
if ( !fw || ( !::tqqt_cast<PopupMenuEditor*>(fw) && fw != lineEdit ) ) {
hideSubMenu();
if ( fw && ::tqqt_cast<MenuBarEditor*>(fw) )
@@ -1031,12 +1031,12 @@ void PopupMenuEditor::drawItem( TQPainter * p, PopupMenuEditorItem * i,
int y = r.y();
int h = r.height();
- p->fillRect( r, tqcolorGroup().brush( TQColorGroup::Background ) );
+ p->fillRect( r, colorGroup().brush( TQColorGroup::Background ) );
if ( i->isSeparator() ) {
tqstyle().tqdrawPrimitive( TQStyle::PE_Separator, p,
TQRect( r.x(), r.y() + 2, r.width(), 1 ),
- tqcolorGroup(), TQStyle::Style_Sunken | f );
+ colorGroup(), TQStyle::Style_Sunken | f );
return;
}
@@ -1044,7 +1044,7 @@ void PopupMenuEditor::drawItem( TQPainter * p, PopupMenuEditorItem * i,
if ( a->isToggleAction() && a->isOn() ) {
tqstyle().tqdrawPrimitive( TQStyle::PE_CheckMark, p,
TQRect( x , y, iconWidth, h ),
- tqcolorGroup(), f );
+ colorGroup(), f );
} else {
TQPixmap icon = a->iconSet().pixmap( TQIconSet::Automatic, TQIconSet::Normal );
p->drawPixmap( x + ( iconWidth - icon.width() ) / 2,
@@ -1066,7 +1066,7 @@ void PopupMenuEditor::drawItem( TQPainter * p, PopupMenuEditorItem * i,
if ( i->count() ) // Item has submenu
tqstyle().tqdrawPrimitive( TQStyle::PE_ArrowRight, p,
TQRect( r.width() - arrowWidth, r.y(), arrowWidth, r.height() ),
- tqcolorGroup(), f );
+ colorGroup(), f );
}
void PopupMenuEditor::drawWinFocusRect( TQPainter * p, const TQRect & r ) const
@@ -1092,7 +1092,7 @@ void PopupMenuEditor::drawItems( TQPainter * p )
int flags = 0;
int idx = 0;
- TQColorGroup enabled = tqcolorGroup();
+ TQColorGroup enabled = colorGroup();
TQColorGroup disabled = tqpalette().disabled();
TQRect focus;
TQRect rect( borderSize, borderSize, width() - borderSize * 2, 0 );