Fix kalyptus by altering kdelibs

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246968 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent b56a10ae43
commit a46e337285

@ -1332,7 +1332,11 @@ public:
* @param name internal object name * @param name internal object name
* @param f Qt::WidgetFlags widget flags * @param f Qt::WidgetFlags widget flags
*/ */
#ifdef qdoc
KDockMainWindow( TQWidget* parent = 0L, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
#else
KDockMainWindow( TQWidget* parent = 0L, const char *name = 0L, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) ); KDockMainWindow( TQWidget* parent = 0L, const char *name = 0L, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) );
#endif
/** /**
* Destructs a dockmainwindow. * Destructs a dockmainwindow.
@ -1546,3 +1550,4 @@ private:
#endif #endif

@ -51,41 +51,7 @@ class KDEUI_EXPORT KEditListBox : public TQGroupBox
TQ_PROPERTY( TQStringList items READ items WRITE setItems ) TQ_PROPERTY( TQStringList items READ items WRITE setItems )
public: public:
/** class CustomEditor;
* Custom editor class
*
* @since 3.1
**/
// ### KDE4: add virtual destructor
class CustomEditor
{
public:
KDEUI_EXPORT CustomEditor()
: m_representationWidget( 0L ),
m_lineEdit( 0L ) {}
KDEUI_EXPORT CustomEditor( TQWidget *repWidget, KLineEdit *edit )
: m_representationWidget( repWidget ),
m_lineEdit( edit ) {}
KDEUI_EXPORT CustomEditor( KComboBox *combo );
KDEUI_EXPORT void setRepresentationWidget( TQWidget *repWidget ) {
m_representationWidget = repWidget;
}
KDEUI_EXPORT void setLineEdit( KLineEdit *edit ) {
m_lineEdit = edit;
}
KDEUI_EXPORT virtual TQWidget *representationWidget() const {
return m_representationWidget;
}
KDEUI_EXPORT virtual KLineEdit *lineEdit() const {
return m_lineEdit;
}
protected:
TQWidget *m_representationWidget;
KLineEdit *m_lineEdit;
};
public: public:
@ -270,6 +236,44 @@ public:
private: private:
//our lovely private d-pointer //our lovely private d-pointer
KEditListBoxPrivate* const d; KEditListBoxPrivate* const d;
/**
* Custom editor class
*
* @since 3.1
**/
// ### KDE4: add virtual destructor
public:
class CustomEditor
{
public:
KDEUI_EXPORT CustomEditor()
: m_representationWidget( 0L ),
m_lineEdit( 0L ) {}
KDEUI_EXPORT CustomEditor( TQWidget *repWidget, KLineEdit *edit )
: m_representationWidget( repWidget ),
m_lineEdit( edit ) {}
KDEUI_EXPORT CustomEditor( KComboBox *combo );
KDEUI_EXPORT void setRepresentationWidget( TQWidget *repWidget ) {
m_representationWidget = repWidget;
}
KDEUI_EXPORT void setLineEdit( KLineEdit *edit ) {
m_lineEdit = edit;
}
KDEUI_EXPORT virtual TQWidget *representationWidget() const {
return m_representationWidget;
}
KDEUI_EXPORT virtual KLineEdit *lineEdit() const {
return m_lineEdit;
}
protected:
TQWidget *m_representationWidget;
KLineEdit *m_lineEdit;
};
}; };
#endif #endif

@ -133,7 +133,11 @@ public:
* KMainWindow *kmw = new KMainWindow (...); * KMainWindow *kmw = new KMainWindow (...);
* \endcode * \endcode
**/ **/
#ifdef qdoc
KMainWindow( TQWidget* parent = 0, const char *name = 0, WFlags f = WType_TopLevel | WDestructiveClose );
#else
KMainWindow( TQWidget* parent = 0, const char *name = 0, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) ); KMainWindow( TQWidget* parent = 0, const char *name = 0, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) );
#endif
/** /**
* Flags that can be passed in an argument to the constructor to * Flags that can be passed in an argument to the constructor to
@ -155,7 +159,11 @@ public:
* *
* @since 3.2 * @since 3.2
*/ */
#ifdef qdoc
KMainWindow( int cflags, TQWidget* parent = 0, const char *name = 0, WFlags f = WType_TopLevel | WDestructiveClose );
#else
KMainWindow( int cflags, TQWidget* parent = 0, const char *name = 0, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) ); KMainWindow( int cflags, TQWidget* parent = 0, const char *name = 0, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) );
#endif
/** /**
* \brief Destructor. * \brief Destructor.
@ -1065,3 +1073,4 @@ inline void kRestoreMainWindows() {
} }
#endif #endif

@ -161,7 +161,10 @@ public:
/** /**
* Reimplemented for internal reasons, the API is not affected. * Reimplemented for internal reasons, the API is not affected.
*/ */
#ifdef qdoc
#else
virtual void setFocusPolicy ( TQ_FocusPolicy policy ); virtual void setFocusPolicy ( TQ_FocusPolicy policy );
#endif
/** /**
* Reimplemented for internal reasons, the API is not affected. * Reimplemented for internal reasons, the API is not affected.
@ -405,3 +408,4 @@ private:
}; };
#endif // KURLLABEL_H #endif // KURLLABEL_H

@ -1560,7 +1560,7 @@ void KDirOperator::resizeEvent( TQResizeEvent * )
if (m_fileView) if (m_fileView)
m_fileView->widget()->resize( size() ); m_fileView->widget()->resize( size() );
if ( progress->parent() == this ) // might be reparented into a statusbar if ( TQT_BASE_OBJECT(progress->parent()) == TQT_BASE_OBJECT(this) ) // might be reparented into a statusbar
progress->move(2, height() - progress->height() -2); progress->move(2, height() - progress->height() -2);
} }

@ -53,7 +53,10 @@ public:
* Open for reading or writing. * Open for reading or writing.
* If the KFilterBase's device is not opened, it will be opened. * If the KFilterBase's device is not opened, it will be opened.
*/ */
#ifdef qdoc
#else
virtual bool open( TQ_OpenMode mode ); virtual bool open( TQ_OpenMode mode );
#endif
/** /**
* Close after reading or writing. * Close after reading or writing.
* If the KFilterBase's device was opened by open(), it will be closed. * If the KFilterBase's device was opened by open(), it will be closed.
@ -77,11 +80,14 @@ public:
void setSkipHeaders(); void setSkipHeaders();
// Not implemented // Not implemented
#ifdef qdoc
#else
#ifdef USE_QT4 #ifdef USE_QT4
virtual qint64 size() const; virtual qint64 size() const;
#else // USE_QT4 #else // USE_QT4
virtual TQIODevice::Offset size() const; virtual TQIODevice::Offset size() const;
#endif // USE_QT4 #endif // USE_QT4
#endif
virtual TQIODevice::Offset at() const; virtual TQIODevice::Offset at() const;
/** /**
@ -91,8 +97,11 @@ public:
virtual bool atEnd() const; virtual bool atEnd() const;
#ifdef qdoc
#else
virtual TQT_TQIO_LONG tqreadBlock( char *data, TQT_TQIO_ULONG maxlen ); virtual TQT_TQIO_LONG tqreadBlock( char *data, TQT_TQIO_ULONG maxlen );
virtual TQT_TQIO_LONG tqwriteBlock( const char *data, TQT_TQIO_ULONG len ); virtual TQT_TQIO_LONG tqwriteBlock( const char *data, TQT_TQIO_ULONG len );
#endif
//int readLine( char *data, uint maxlen ); //int readLine( char *data, uint maxlen );
virtual int getch(); virtual int getch();
@ -192,3 +201,4 @@ private:
#endif #endif

@ -296,7 +296,11 @@ private:
// methods // methods
public: public:
#ifdef qdoc
KMdiMainFrm( TQWidget* parentWidget, const char* name = "", KMdi::MdiMode mdiMode = KMdi::ChildframeMode, WFlags flags = WType_TopLevel | WDestructiveClose );
#else
KMdiMainFrm( TQWidget* parentWidget, const char* name = "", KMdi::MdiMode mdiMode = KMdi::ChildframeMode, WFlags flags = (WFlags)(WType_TopLevel | WDestructiveClose) ); KMdiMainFrm( TQWidget* parentWidget, const char* name = "", KMdi::MdiMode mdiMode = KMdi::ChildframeMode, WFlags flags = (WFlags)(WType_TopLevel | WDestructiveClose) );
#endif
virtual ~KMdiMainFrm(); virtual ~KMdiMainFrm();
/** /**
@ -877,3 +881,4 @@ signals:
#endif //_KMDIMAINFRM_H_ #endif //_KMDIMAINFRM_H_
// kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands; // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;

@ -51,16 +51,28 @@ class KPARTS_EXPORT MainWindow : public KMainWindow, virtual public PartBase
/** /**
* Constructor, same signature as KMainWindow. * Constructor, same signature as KMainWindow.
*/ */
#ifdef qdoc
MainWindow( TQWidget* parent, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
#else
MainWindow( TQWidget* parent, const char *name = 0L, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) ); MainWindow( TQWidget* parent, const char *name = 0L, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) );
#endif
/** /**
* Compatibility Constructor * Compatibility Constructor
*/ */
#ifdef qdoc
MainWindow( const char *name = 0L, WFlags f = WDestructiveClose );
#else
MainWindow( const char *name = 0L, WFlags f = (WFlags)WDestructiveClose ); MainWindow( const char *name = 0L, WFlags f = (WFlags)WDestructiveClose );
#endif
/** /**
* Constructor with creation flags, see KMainWindow. * Constructor with creation flags, see KMainWindow.
* @since 3.2 * @since 3.2
*/ */
#ifdef qdoc
MainWindow( int cflags, TQWidget* parent, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
#else
MainWindow( int cflags, TQWidget* parent, const char *name = 0L, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) ); MainWindow( int cflags, TQWidget* parent, const char *name = 0L, WFlags f = (WFlags)(WType_TopLevel | WDestructiveClose) );
#endif
/** /**
* Destructor. * Destructor.
*/ */
@ -105,3 +117,4 @@ private:
} }
#endif #endif

Loading…
Cancel
Save