rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-systemsettings@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 07915c3e55
commit 79e6120f21

@ -27,8 +27,8 @@
#include "modulesview.h" #include "modulesview.h"
#include "moduleiconitem.h" #include "moduleiconitem.h"
KcmSearch::KcmSearch( TQPtrList<ModulesView> *moduleViewList, TQWidget *tqparent, const char *name ) KcmSearch::KcmSearch( TQPtrList<ModulesView> *moduleViewList, TQWidget *parent, const char *name )
: KIconViewSearchLine(tqparent, moduleViewList->at(0)->groups[0], name){ : KIconViewSearchLine(parent, moduleViewList->at(0)->groups[0], name){
this->moduleViewList = moduleViewList; this->moduleViewList = moduleViewList;
} }

@ -37,7 +37,7 @@ class KcmSearch : public KIconViewSearchLine
TQ_OBJECT TQ_OBJECT
public: public:
KcmSearch( TQPtrList<ModulesView> *moduleViewList, TQWidget *tqparent = 0, const char *name = 0 ); KcmSearch( TQPtrList<ModulesView> *moduleViewList, TQWidget *parent = 0, const char *name = 0 );
public slots: public slots:
/** /**

@ -62,18 +62,18 @@ class KCMultiWidget::KCMultiWidgetPrivate
}; };
KCMultiWidget::KCMultiWidget(TQWidget *tqparent, const char *name, bool modal) KCMultiWidget::KCMultiWidget(TQWidget *parent, const char *name, bool modal)
: KDialogBase(IconList, i18n("Configure"), Help | Default |Cancel | Apply | : KDialogBase(IconList, i18n("Configure"), Help | Default |Cancel | Apply |
Ok | User1 | User2 | User3, Ok, tqparent, name, modal, true, Ok | User1 | User2 | User3, Ok, parent, name, modal, true,
KStdGuiItem::reset(), KStdGuiItem::close(), KStdGuiItem::adminMode()) KStdGuiItem::reset(), KStdGuiItem::close(), KStdGuiItem::adminMode())
, dialogface( IconList ), d( new KCMultiWidgetPrivate ) , dialogface( IconList ), d( new KCMultiWidgetPrivate )
{ {
init(); init();
} }
KCMultiWidget::KCMultiWidget( int dialogFace, TQWidget * tqparent, const char * name, bool modal ) KCMultiWidget::KCMultiWidget( int dialogFace, TQWidget * parent, const char * name, bool modal )
: KDialogBase( dialogFace, "Caption", Help | Default | Cancel | Apply | Ok | : KDialogBase( dialogFace, "Caption", Help | Default | Cancel | Apply | Ok |
User1 | User2 | User3, Ok, tqparent, name, modal, true, User1 | User2 | User3, Ok, parent, name, modal, true,
KStdGuiItem::reset(), KStdGuiItem::close(), KStdGuiItem::adminMode()) KStdGuiItem::reset(), KStdGuiItem::close(), KStdGuiItem::adminMode())
, dialogface( dialogFace ), d( new KCMultiWidgetPrivate ) , dialogface( dialogFace ), d( new KCMultiWidgetPrivate )
{ {
@ -111,7 +111,7 @@ void KCMultiWidget::slotDefault()
ModuleList::Iterator end = m_modules.end(); ModuleList::Iterator end = m_modules.end();
for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it ) for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it )
if( pageIndex( ( TQWidget * )( *it ).kcm->tqparent() ) == curPageIndex ) if( pageIndex( ( TQWidget * )( *it ).kcm->parent() ) == curPageIndex )
{ {
( *it ).kcm->defaults(); ( *it ).kcm->defaults();
clientChanged( true ); clientChanged( true );
@ -126,7 +126,7 @@ void KCMultiWidget::slotUser1()
ModuleList::Iterator end = m_modules.end(); ModuleList::Iterator end = m_modules.end();
for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it ) for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it )
if( pageIndex( ( TQWidget * )( *it ).kcm->tqparent() ) == curPageIndex ) if( pageIndex( ( TQWidget * )( *it ).kcm->parent() ) == curPageIndex )
{ {
( *it ).kcm->load(); ( *it ).kcm->load();
clientChanged( false ); clientChanged( false );
@ -186,7 +186,7 @@ void KCMultiWidget::slotHelp()
int curPageIndex = activePageIndex(); int curPageIndex = activePageIndex();
ModuleList::Iterator end = m_modules.end(); ModuleList::Iterator end = m_modules.end();
for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it ) for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it )
if( pageIndex( ( TQWidget * )( *it ).kcm->tqparent() ) == curPageIndex ) if( pageIndex( ( TQWidget * )( *it ).kcm->parent() ) == curPageIndex )
{ {
docPath = ( *it ).kcm->moduleInfo().docPath(); docPath = ( *it ).kcm->moduleInfo().docPath();
break; break;

@ -46,24 +46,24 @@ public:
/** /**
* Constructs a new KCMultiWidget * Constructs a new KCMultiWidget
* *
* @param tqparent The tqparent widget * @param parent The parent widget
* @param name The widget name * @param name The widget name
* @param modal If you pass true here, the dialog will be modal * @param modal If you pass true here, the dialog will be modal
**/ **/
KCMultiWidget( TQWidget *tqparent=0, const char *name=0, bool modal=false ); KCMultiWidget( TQWidget *parent=0, const char *name=0, bool modal=false );
/** /**
* Construct a personalized KCMultiWidget. * Construct a personalized KCMultiWidget.
* *
* @param dialogFace You can use TreeList, Tabbed, Plain, Swallow or * @param dialogFace You can use TreeList, Tabbed, Plain, Swallow or
* IconList. * IconList.
* @param tqparent Parent of the dialog. * @param parent Parent of the dialog.
* @param name Dialog name (for internal use only). * @param name Dialog name (for internal use only).
* @param modal Controls dialog modality. If @p false, the rest of the * @param modal Controls dialog modality. If @p false, the rest of the
* program interface (example: other dialogs) is accessible while * program interface (example: other dialogs) is accessible while
* the dialog is open. * the dialog is open.
*/ */
KCMultiWidget( int dialogFace, TQWidget * tqparent = 0, KCMultiWidget( int dialogFace, TQWidget * parent = 0,
const char * name = 0, bool modal = false ); const char * name = 0, bool modal = false );

@ -20,7 +20,7 @@
#include "kcscrollview.h" #include "kcscrollview.h"
KCScrollView::KCScrollView( TQWidget * tqparent, const char * name, WFlags f) : TQScrollView(tqparent,name,f) { KCScrollView::KCScrollView( TQWidget * parent, const char * name, WFlags f) : TQScrollView(parent,name,f) {
setResizePolicy(AutoOneFit); setResizePolicy(AutoOneFit);
mainChild = 0; mainChild = 0;
} }

@ -24,7 +24,7 @@
class KCScrollView : public TQScrollView { class KCScrollView : public TQScrollView {
public: public:
KCScrollView ( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 ); KCScrollView ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
virtual TQSize tqsizeHint() const; virtual TQSize tqsizeHint() const;
virtual void addChild(TQWidget *child, int x=0, int y=0); virtual void addChild(TQWidget *child, int x=0, int y=0);

@ -52,8 +52,8 @@
#include "kcmultiwidget.h" #include "kcmultiwidget.h"
MainWindow::MainWindow(bool embed, const TQString & menuFile, MainWindow::MainWindow(bool embed, const TQString & menuFile,
TQWidget *tqparent, const char *name) : TQWidget *parent, const char *name) :
KMainWindow(tqparent,name), menu(NULL), embeddedWindows(embed), KMainWindow(parent,name), menu(NULL), embeddedWindows(embed),
groupWidget(NULL), selectedPage(0), dummyAbout(NULL) { groupWidget(NULL), selectedPage(0), dummyAbout(NULL) {
// Load the menu structure in from disk. // Load the menu structure in from disk.

@ -48,7 +48,7 @@ class MainWindow : public KMainWindow
public: public:
MainWindow(bool embed=true, const TQString &menufile="systemsettings", MainWindow(bool embed=true, const TQString &menufile="systemsettings",
TQWidget *tqparent=0, const char *name=0); TQWidget *parent=0, const char *name=0);
~MainWindow(); ~MainWindow();
private slots: private slots:

@ -24,17 +24,17 @@
#define IMAGE_SIZE 32 #define IMAGE_SIZE 32
ModuleIconItem::ModuleIconItem( KIconView *tqparent, KCModuleInfo module) ModuleIconItem::ModuleIconItem( KIconView *parent, KCModuleInfo module)
: TQIconViewItem( tqparent, module.moduleName(), : TQIconViewItem( parent, module.moduleName(),
SmallIcon( module.icon(), IMAGE_SIZE ) ), SmallIcon( module.icon(), IMAGE_SIZE ) ),
currentState( KIcon::ActiveState), imageName(module.icon()) currentState( KIcon::ActiveState), imageName(module.icon())
{ {
modules.append(module); modules.append(module);
} }
ModuleIconItem::ModuleIconItem( KIconView *tqparent, const TQString &text, ModuleIconItem::ModuleIconItem( KIconView *parent, const TQString &text,
const TQString &imageName ) const TQString &imageName )
: TQIconViewItem( tqparent, text, SmallIcon( imageName, IMAGE_SIZE ) ), : TQIconViewItem( parent, text, SmallIcon( imageName, IMAGE_SIZE ) ),
currentState( KIcon::ActiveState ) currentState( KIcon::ActiveState )
{ {
this->imageName = imageName; this->imageName = imageName;

@ -35,9 +35,9 @@ class ModuleIconItem : public TQIconViewItem
{ {
public: public:
ModuleIconItem( KIconView *tqparent, KCModuleInfo module ); ModuleIconItem( KIconView *parent, KCModuleInfo module );
ModuleIconItem( KIconView *tqparent, const TQString &text, ModuleIconItem( KIconView *parent, const TQString &text,
const TQString &imageName ); const TQString &imageName );
/** /**

@ -37,8 +37,8 @@
#include "moduleiconitem.h" #include "moduleiconitem.h"
#include "kcmodulemenu.h" #include "kcmodulemenu.h"
ModulesView::ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWidget *tqparent, ModulesView::ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWidget *parent,
const char *name ) : TQWidget( tqparent, name ), rootMenu( NULL ) const char *name ) : TQWidget( parent, name ), rootMenu( NULL )
{ {
this->rootMenu = rootMenu; this->rootMenu = rootMenu;
this->menuPath = menuPath; this->menuPath = menuPath;

@ -30,8 +30,8 @@ class RowIconView : public KIconView
{ {
public: public:
RowIconView( TQWidget* tqparent, const char *name=0 ) RowIconView( TQWidget* parent, const char *name=0 )
: KIconView( tqparent, name ){ }; : KIconView( parent, name ){ };
// Figure out the hight/width to have only one row // Figure out the hight/width to have only one row
TQSize tqminimumSizeHint() const { TQSize tqminimumSizeHint() const {
@ -86,7 +86,7 @@ signals:
void itemSelected( TQIconViewItem* item ); void itemSelected( TQIconViewItem* item );
public: public:
ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWidget *tqparent=0, const char *name=0 ); ModulesView( KCModuleMenu *rootMenu, const TQString &menuPath, TQWidget *parent=0, const char *name=0 );
~ModulesView(); ~ModulesView();
private: private:

Loading…
Cancel
Save