diff -urN qt-x11-free-3.0.4.orig/doc/html/designer-manual-8.html qt-x11-free-3.0.4/doc/html/designer-manual-8.html --- qt-x11-free-3.0.4.orig/doc/html/designer-manual-8.html Fri Apr 26 10:33:15 2002 +++ qt-x11-free-3.0.4/doc/html/designer-manual-8.html Sun May 5 14:37:17 2002 @@ -87,7 +87,7 @@
  1. Click File|New to invoke the New File dialog. Click the Dialog template then click OK.

  2. Click the Text Label toolbar button, then click near the top left of the form. Change the font Point Size property to 16 and change the text property to your or your company's name. Click the Line toolbar button, then click the form below the label; click Horizontal on the pop-up menu.

  3. Select the label and the line. (Ctrl+Click the form, then drag the rubber band so that it touches or includes the line and the label.) Press Ctrl+L to lay them out vertically.

    -
  4. Click the Save toolbar button. In the Save As dialog, navigate to Qt Designer's templates directory, e.g. (qt/tools/designer/templates. Type in the name 'Simple_Dialog.ui' and click Save.

    +
  5. Click the Save toolbar button. In the Save As dialog, navigate to Qt Designer's templates directory, e.g. (/usr/X11R6/share/qt/designer/templates. Type in the name 'Simple_Dialog.ui' and click Save.

  6. Right click the form in the Forms list, then click Remove form from project.

Now that we have the simple template we are ready to use it. Click File|New to invoke the New File dialog. One of the templates that will appear is 'Simple Dialog'. Click the simple dialog, then click OK. A new form will appear with the same widgets and layout as the template. Add any other widgets and functionality. When you attempt to save the form you will be prompted for a new form name.

Base-class Templates

diff -urN qt-x11-free-3.0.4.orig/src/kernel/qapplication.cpp qt-x11-free-3.0.4/src/kernel/qapplication.cpp --- qt-x11-free-3.0.4.orig/src/kernel/qapplication.cpp Fri Apr 26 09:48:13 2002 +++ qt-x11-free-3.0.4/src/kernel/qapplication.cpp Sun May 5 14:40:12 2002 @@ -1494,16 +1494,8 @@ if ( !app_libpaths ) { app_libpaths = new QStringList; - char *qtdir = getenv("QTDIR"); - if ( qtdir && QFile::exists( QString(qtdir) + "/plugins" ) ) - app_libpaths->append( QString(qtdir) + "/plugins" ); -#ifdef QT_INSTALL_PREFIX - else if ( QFile::exists( QString(QT_INSTALL_PREFIX) + "/plugins" ) ) - app_libpaths->append( QString(QT_INSTALL_PREFIX) + "/plugins" ); -#endif // QT_INSTALL_PREFIX #ifdef QT_INSTALL_PLUGINS - else if ( QFile::exists( QString(QT_INSTALL_PLUGINS) ) ) - app_libpaths->append( QString(QT_INSTALL_PLUGINS) ); + app_libpaths->append( QString(QT_INSTALL_PLUGINS) ); #endif } return *app_libpaths; diff -urN qt-x11-free-3.0.4.orig/tools/designer/designer/designer.pro qt-x11-free-3.0.4/tools/designer/designer/designer.pro --- qt-x11-free-3.0.4.orig/tools/designer/designer/designer.pro Thu Apr 18 13:35:11 2002 +++ qt-x11-free-3.0.4/tools/designer/designer/designer.pro Sun May 5 14:37:17 2002 @@ -50,6 +50,6 @@ INSTALLS += target isEmpty(data.path):data.path=$$QT_PREFIX -templates.path=$$data.path/templates +templates.path=$$data.path/designer/templates templates.files = ../templates/* INSTALLS += templates diff -urN qt-x11-free-3.0.4.orig/tools/designer/designer/mainwindowactions.cpp qt-x11-free-3.0.4/tools/designer/designer/mainwindowactions.cpp --- qt-x11-free-3.0.4.orig/tools/designer/designer/mainwindowactions.cpp Mon Mar 18 15:22:45 2002 +++ qt-x11-free-3.0.4/tools/designer/designer/mainwindowactions.cpp Sun May 5 14:37:17 2002 @@ -1307,7 +1307,7 @@ QMessageBox::information( this, tr( "Create Template" ), tr( "Couldn't create the template" ) ); return; } - fn.prepend( QString( getenv( "QTDIR" ) ) + "/tools/designer/templates/" ); + fn.prepend( QString( getenv( "QTDIR" ) ) + "share/qt/designer/templates/" ); fn.append( ".ui" ); QFile f( fn ); if ( !f.open( IO_WriteOnly ) ) { diff -urN qt-x11-free-3.0.4.orig/tools/designer/designer/newformimpl.cpp qt-x11-free-3.0.4/tools/designer/designer/newformimpl.cpp --- qt-x11-free-3.0.4.orig/tools/designer/designer/newformimpl.cpp Thu Feb 21 02:11:16 2002 +++ qt-x11-free-3.0.4/tools/designer/designer/newformimpl.cpp Sun May 5 14:37:17 2002 @@ -284,7 +284,7 @@ templRoots << QT_INSTALL_DATA; #endif for ( QStringList::Iterator it = templRoots.begin(); it != templRoots.end(); ++it ) { - QString path = (*it) + "/tools/designer/templates"; + QString path = (*it) + "/share/qt/designer/templates"; if ( QFile::exists( path )) { templPath = path; break; diff -urN qt-x11-free-3.0.4.orig/tools/qtconfig/mainwindow.cpp qt-x11-free-3.0.4/tools/qtconfig/mainwindow.cpp --- qt-x11-free-3.0.4.orig/tools/qtconfig/mainwindow.cpp Fri Apr 26 07:09:27 2002 +++ qt-x11-free-3.0.4/tools/qtconfig/mainwindow.cpp Sun May 5 14:37:17 2002 @@ -636,7 +636,7 @@ QStringList libpath = QApplication::libraryPaths(); QString QTDIRpath = getenv("QTDIR"); if ( ! QTDIRpath.isEmpty() ) { - QTDIRpath += "/plugins"; + QTDIRpath += "/lib/qt/plugins"; libpath.remove(QTDIRpath); } settings.writeEntry("/qt/libraryPath", libpath, ':');