2009/1/17 Chris Cannam <[email protected]>

> Is it time to open this can of worms again, and relent on the matter
> of using Qt classes in base?
>
> If so, should we be aiming for more or less std::string-free code, or
> just incrementally allowing examples of QString to creep in?
>
> Chris


Simplify, simplify, and simplify. That should be a working rule of thumb.

If there will be some translatable strings in base, like error messages,
then tr() produces automatically QStrings. In those cases, it is
necessary to declare the translation context, since base classes do
not inherit QOBJECT:

...
#include <QCoreApplication>
...
class myClass {
    Q_DECLARE_TR_FUNCTION(myClass)
public:
    ... tr("Hello World!")...
}

Just go ahead.

-- 

Heikki
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to