summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/inputstring.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-07-04 18:58:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-07-04 18:58:02 (GMT)
commitc1605e5b6df0248e8dae3a578a89885f26b41c88 (patch)
tree664f7eba133cf2b4d4e8add25229777806fc9b8c /addon/doxywizard/inputstring.cpp
parent6b195c8d27c7cba3885acf1540f33ea7f51b9d1b (diff)
downloadDoxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.zip
Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.tar.gz
Doxygen-c1605e5b6df0248e8dae3a578a89885f26b41c88.tar.bz2
Release-1.3.7-20040704
Diffstat (limited to 'addon/doxywizard/inputstring.cpp')
-rw-r--r--addon/doxywizard/inputstring.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/addon/doxywizard/inputstring.cpp b/addon/doxywizard/inputstring.cpp
index 27ca564..6450cb9 100644
--- a/addon/doxywizard/inputstring.cpp
+++ b/addon/doxywizard/inputstring.cpp
@@ -13,8 +13,7 @@
*/
#include "inputstring.h"
-#include "pagewidget.h"
-#include "pixmaps.h"
+//#include "pixmaps.h"
#include <qlabel.h>
#include <qlayout.h>
@@ -28,8 +27,8 @@
InputString::InputString( const QString & label,
- PageWidget *parent, QCString &s, StringMode m )
- : QWidget( parent->getLayout() ), str(s), sm(m), m_values(0), m_index(0)
+ QWidget *parent, QCString &s, StringMode m )
+ : QWidget( parent ), str(s), sm(m), m_values(0), m_index(0)
{
if (m==StringFixed)
{
@@ -38,6 +37,7 @@ InputString::InputString( const QString & label,
lab->setMinimumSize( lab->sizeHint() );
layout->addWidget( lab );
com = new QComboBox( this );
+ com->setMinimumSize(com->sizeHint());
layout->addWidget( com );
layout->addStretch( 1 );
le=0;
@@ -57,16 +57,21 @@ InputString::InputString( const QString & label,
layout->addWidget( le,0,1 );
if (m==StringFile || m==StringDir)
{
- QPixmap pixmap = QPixmap(m==StringFile ?
- file_xpm :
- folder_xpm );
+ //QPixmap pixmap = QPixmap(m==StringFile ?
+ // file_xpm :
+ // folder_xpm );
br = new QPushButton( this );
- br->setPixmap(pixmap);
br->setMinimumSize( br->sizeHint() );
if (m==StringFile)
+ {
+ br->setText("File...");
QToolTip::add(br,"Browse to a file");
+ }
else
+ {
+ br->setText("Folder...");
QToolTip::add(br,"Browse to a folder");
+ }
layout->addWidget( br,0,2 );
}
else
@@ -83,8 +88,6 @@ InputString::InputString( const QString & label,
if (br) connect( br, SIGNAL(clicked()), this, SLOT(browse()) );
if (com) connect( com, SIGNAL(activated(const QString &)),
this, SLOT(textChanged(const QString &)) );
-
- parent->addWidget(this);
}
InputString::~InputString()