From 7bc57326e69b9c3f0eaeda63e4a49b67ba611426 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Jun 2024 15:05:55 +0900 Subject: Rename style nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/plugins-howto.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/plugins-howto.html') diff --git a/doc/html/plugins-howto.html b/doc/html/plugins-howto.html index 320c694f3..62f7d6bbd 100644 --- a/doc/html/plugins-howto.html +++ b/doc/html/plugins-howto.html @@ -52,7 +52,7 @@ by default in the standard plugin directory. TQSqlDriverPlugin pluginsbase/sqldrivers * -TQStylePlugin +TQStylePlugin pluginsbase/styles * TQTextCodecPlugin @@ -73,7 +73,7 @@ set your own path or paths you can use

Suppose that you have a new style class called 'MyStyle' that you want to make available as a plugin. The required code is straightforward:

-    class MyStylePlugin : public TQStylePlugin
+    class MyStylePlugin : public TQStylePlugin
     {
     public:
         MyStylePlugin() {}
@@ -83,7 +83,7 @@ to make available as a plugin. The required code is straightforward:
             return TQStringList() << "mystyle"; 
         }
 
-        TQStyle* create( const TQString& key ) { 
+        TQStyle* create( const TQString& key ) { 
             if ( key == "mystyle" ) 
                 return new MyStyle;
             return 0;
@@ -93,7 +93,7 @@ to make available as a plugin. The required code is straightforward:
     TQ_EXPORT_PLUGIN( MyStylePlugin )
 
-

(Note that TQStyleFactory is case-insensitive, and the lower case +

(Note that TQStyleFactory is case-insensitive, and the lower case version of the key is used; other factories, e.g. TQWidgetFactory, are case sensitive.)

The constructor and destructor do not need to do anything, so are left @@ -102,7 +102,7 @@ The first is keys() which returns a string list of the classes implemented in the plugin. (We've just implemented one class in the example above.) The second is a function that returns an object of the required class (or 0 if the plugin is asked to create an object of a -class that it doesn't implement). For TQStylePlugin, this second +class that it doesn't implement). For TQStylePlugin, this second function is called create().

It is possible to implement any number of plugin subclasses in a single plugin, providing they are all derived from the same base @@ -112,7 +112,7 @@ no explicit object creation is required. TQt will find and create them as required. Styles are an exception, since you might want to set a style explicitly in code. To apply a style, use code like this:

-    TQApplication::setStyle( TQStyleFactory::create( "MyStyle" ) );
+    TQApplication::setStyle( TQStyleFactory::create( "MyStyle" ) );
 

Some plugin classes require additional functions to be implemented. -- cgit v1.2.3