Bug 53388 - missing directory $QTDIR/tools/designer/templates
Summary: missing directory $QTDIR/tools/designer/templates
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: qt   
(Show other bugs)
Version: 7.1
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-09-07 18:53 UTC by Dimitri Papadopoulos
Modified: 2007-04-18 16:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-09-07 18:53:43 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Dimitri Papadopoulos 2001-09-07 18:53:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12smp i686)

Description of problem:
The Qt Designer needs directory $QTDIR/tools/designer/templates otherwise
it will try to load template files from the current directory. I'll have to
agree that the relevant code in tools/designer/designer/newformimpl.cpp is

static QString templatePath( const QString &t )
    if ( QFileInfo( "../templates" ).exists() )
	return "../templates";
    QString qtdir = getenv( "QTDIR" );
    if ( QFileInfo( qtdir + "/tools/designer/templates" ).exists() )
	return qtdir + "/tools/designer/templates";
    return t;

Trolltech will take care of this, maybe by deleting this curious function,
but $QTDIR/tools/designer/templates seems to be needed by the Qt Designer
for now.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Enter a directory that contains a few files.
2. Run the Qt Designer from this directory.
3. Click on the New toobutton.
4. The files of this directory appear as templates in the dialog.

Actual Results:  The files of this directory appear as templates in the
"New Form" dialog.

Expected Results:  Only the files in $QTDIR/tools/designer/templates should

Additional info:

I suggest adding a $QTDIR/tools/designer/templates in the current version.

Comment 1 Bernhard Rosenkraenzer 2001-09-09 20:37:33 UTC
Unfortunately this was reported slightly too late to make it into the next 
release. It will be addressed for the release after that.

Note You need to log in before you can comment on or make changes to this bug.