SVN commit 409998 by kainhofe: SVN_SILENT: Tab -> spaces M +17 -17 trunk/kdenonbeta/uirtk/TODO --- trunk/kdenonbeta/uirtk/TODO #409997:409998 @@ -7,25 +7,25 @@ column/row headers, etc. -) Connections between the widgets should be automatically generated. Is there any way to get a list of all connections of a QObject? - Tronical has a nice solution for this (AKA dirty hack :-) ): + Tronical has a nice solution for this (AKA dirty hack :-) ): [22:39] reinhold: tronical has an interesting suggestion [22:39] [22:36] danimo: - class GetMeTheConnections : public QObject { - public: - static const QConnectionList *connectionsForSignal(QObject *sender, const char *signal) { - return static_cast(sender)->connectionsForSignalInternal(signal); - } - private: - const QConnectionList *connectionsForSignalInternal(const char *signal) { - return receivers(signal); - } - }; (untested) + class GetMeTheConnections : public QObject { + public: + static const QConnectionList *connectionsForSignal(QObject *sender, const char *signal) { + return static_cast(sender)->connectionsForSignalInternal(signal); + } + private: + const QConnectionList *connectionsForSignalInternal(const char *signal) { + return receivers(signal); + } + }; (untested) [22:39] [22:37] danimo: then - const QConnectionList *conns = GetMeTheConnections::connectionsForSignal(bleh, foobar); + const QConnectionList *conns = GetMeTheConnections::connectionsForSignal(bleh, foobar); [22:40] (of course using a better class name ;-) [22:40] (meaning please choose another one if you use this hack :) - - + + -) Lots of properties are extracted although they are not actually needed. What's the best way to find out if a property is really manually set? -) The check widget style messes up the strings in the original widget and puts @@ -33,9 +33,9 @@ -) Accelerators should be ignored. -) QIconSet of QToolButtons not written! -) Pixmaps are not supported yet. - -) SizePolicy (if set manually) always seems to be extracted as Fixed instead of the correct value. - - + -) SizePolicy (if set manually) always seems to be extracted as Fixed instead of the correct value. + + +) GridLayout-Items spanning multiple cells are not supported (how can I get information about how many cells an item spans???) +) How can I get the position of a sublayout/spacer in a QGridLayout?