Update TQt3 property/enum macros

pull/1/head
Timothy Pearson 12 years ago
parent 70a3c0d90b
commit 4ee9bc52eb

@ -20,7 +20,7 @@ with the goal to be more generic and extensible.
Library provides a @ref PropertyLib::Property class which stores property name, value and some
more important information like description or the list of possible values.
Using @ref PropertyLib::Property class adds more overhead over Q_PROPERTY but provides more
Using @ref PropertyLib::Property class adds more overhead over TQ_PROPERTY but provides more
flexibility. You can subclass @ref PropertyLib::Property and create your custom properties.
Custom properties can have either predefined type (see @ref PropertyLib::PropertyType) or
custom type. Custom type should be used if a custom property editor widget is

@ -37,7 +37,7 @@ class FileChooser : public TQWidget
Q_OBJECT
Q_ENUMS( Mode )
TQ_ENUMS( Mode )
TQ_PROPERTY( Mode mode READ mode WRITE setMode )
TQ_PROPERTY( TQString fileName READ fileName WRITE setFileName )

@ -123,7 +123,7 @@ class Spacer : public TQWidget
TQ_OVERRIDE( TQCString name )
TQ_PROPERTY( Qt::Orientation orientation READ orientation WRITE setOrientation )
Q_ENUMS( SizeType )
TQ_ENUMS( SizeType )
TQ_PROPERTY( SizeType sizeType READ sizeType WRITE setSizeType )
TQ_PROPERTY( TQSize sizeHint READ sizeHint WRITE setSizeHint DESIGNABLE true STORED true )
TQ_OVERRIDE( TQRect geometry DESIGNABLE false )

@ -44,7 +44,7 @@ class StyledButton : public TQButton
TQ_PROPERTY( EditorType editor READ editor WRITE setEditor )
TQ_PROPERTY( bool scale READ scale WRITE setScale )
Q_ENUMS( EditorType )
TQ_ENUMS( EditorType )
public:
enum EditorType { ColorEditor, PixmapEditor };

@ -600,7 +600,7 @@ void Driver::setupLexer( Lexer * lexer ) {
lexer->addSkipWord( "Q_OBJECT" );
lexer->addSkipWord( "" );
lexer->addSkipWord( "TQ_OVERRIDE", SkipWordAndArguments );
lexer->addSkipWord( "Q_ENUMS", SkipWordAndArguments );
lexer->addSkipWord( "TQ_ENUMS", SkipWordAndArguments );
lexer->addSkipWord( "TQ_PROPERTY", SkipWordAndArguments );
lexer->addSkipWord( "TQ_CLASSINFO", SkipWordAndArguments );
lexer->addSkipWord( "TQ_SETS", SkipWordAndArguments );

@ -22,7 +22,7 @@ with the goal to be more generic and extensible.
Library provides a @ref PropertyLib::Property class which stores property name, value and some
more important information like description or the list of possible values.
Using @ref PropertyLib::Property class adds more overhead over Q_PROPERTY but provides more
Using @ref PropertyLib::Property class adds more overhead over TQ_PROPERTY but provides more
flexibility. You can subclass @ref PropertyLib::Property and create your custom properties.
Custom properties can have either predefined type (see @ref PropertyLib::Property::PropertyType) or
custom type. Custom type should be used if a custom property editor widget is

@ -42,7 +42,7 @@ class TQ_EXPORT QComboView : public TQWidget
{
Q_OBJECT
Q_ENUMS( Policy )
TQ_ENUMS( Policy )
TQ_PROPERTY( bool editable READ editable WRITE setEditable )
// TQ_PROPERTY( int count READ count )
TQ_PROPERTY( TQString currentText READ currentText WRITE setCurrentText DESIGNABLE false )

@ -76,7 +76,7 @@ class KActionSelectorPrivate;
class KActionSelector : public TQWidget {
Q_OBJECT
Q_ENUMS( ButtonIconSize InsertionPolicy )
TQ_ENUMS( ButtonIconSize InsertionPolicy )
TQ_PROPERTY( bool moveOnDoubleClick READ moveOnDoubleClick WRITE setMoveOnDoubleClick )
TQ_PROPERTY( bool keyboardEnabled READ keyboardEnabled WRITE setKeyboardEnabled )
TQ_PROPERTY( TQString availableLabel READ availableLabel WRITE setAvailableLabel )

Loading…
Cancel
Save