summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/DocumentConfigureDialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/dialogs/DocumentConfigureDialog.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/dialogs/DocumentConfigureDialog.cpp')
-rw-r--r--src/gui/dialogs/DocumentConfigureDialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/dialogs/DocumentConfigureDialog.cpp b/src/gui/dialogs/DocumentConfigureDialog.cpp
index 5f79f33..d959a5c 100644
--- a/src/gui/dialogs/DocumentConfigureDialog.cpp
+++ b/src/gui/dialogs/DocumentConfigureDialog.cpp
@@ -24,7 +24,7 @@
#include "DocumentConfigureDialog.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include "ConfigureDialogBase.h"
@@ -34,37 +34,37 @@
#include "gui/configuration/DocumentMetaConfigurationPage.h"
#include "gui/configuration/GeneralConfigurationPage.h"
#include <kdialogbase.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include <kstddirs.h>
namespace Rosegarden
{
-static QPixmap loadIcon(const char *name)
+static TQPixmap loadIcon(const char *name)
{
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QString fileBase = pixmapDir + "/misc/";
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQString fileBase = pixmapDir + "/misc/";
fileBase += name;
- if (QFile(fileBase + ".png").exists()) {
- return QPixmap(fileBase + ".png");
- } else if (QFile(fileBase + ".xpm").exists()) {
- return QPixmap(fileBase + ".xpm");
+ if (TQFile(fileBase + ".png").exists()) {
+ return TQPixmap(fileBase + ".png");
+ } else if (TQFile(fileBase + ".xpm").exists()) {
+ return TQPixmap(fileBase + ".xpm");
}
- QPixmap pmap = KGlobal::instance()->iconLoader()
- ->loadIcon(QString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium);
+ TQPixmap pmap = KGlobal::instance()->iconLoader()
+ ->loadIcon(TQString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium);
return pmap;
}
DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc,
- QWidget *parent,
+ TQWidget *parent,
const char *name)
: ConfigureDialogBase(parent, i18n("Document Properties"), name)
{
- QWidget *pageWidget = 0;
- QVBoxLayout *vlay = 0;
+ TQWidget *pageWidget = 0;
+ TQVBoxLayout *vlay = 0;
ConfigurationPage* page = 0;
// Document Meta Page
@@ -72,7 +72,7 @@ DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc,
pageWidget = addPage(DocumentMetaConfigurationPage::iconLabel(),
DocumentMetaConfigurationPage::title(),
loadIcon(DocumentMetaConfigurationPage::iconName()));
- vlay = new QVBoxLayout(pageWidget, 0, spacingHint());
+ vlay = new TQVBoxLayout(pageWidget, 0, spacingHint());
page = new DocumentMetaConfigurationPage(doc, pageWidget);
vlay->addWidget(page);
page->setPageIndex(pageIndex(pageWidget));
@@ -83,7 +83,7 @@ DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc,
pageWidget = addPage(AudioPropertiesPage::iconLabel(),
AudioPropertiesPage::title(),
loadIcon(AudioPropertiesPage::iconName()));
- vlay = new QVBoxLayout(pageWidget, 0, spacingHint());
+ vlay = new TQVBoxLayout(pageWidget, 0, spacingHint());
page = new AudioPropertiesPage(doc, pageWidget);
vlay->addWidget(page);
page->setPageIndex(pageIndex(pageWidget));
@@ -94,7 +94,7 @@ DocumentConfigureDialog::DocumentConfigureDialog(RosegardenGUIDoc *doc,
ColourConfigurationPage::title(),
loadIcon(ColourConfigurationPage::iconName()));
- vlay = new QVBoxLayout(pageWidget, 0, spacingHint());
+ vlay = new TQVBoxLayout(pageWidget, 0, spacingHint());
page = new ColourConfigurationPage(doc, pageWidget);
vlay->addWidget(page);
page->setPageIndex(pageIndex(pageWidget));
@@ -126,7 +126,7 @@ DocumentConfigureDialog::showAudioPage()
/* hjj: WHAT TO DO WITH THIS ?
void
-DocumentConfigureDialog::selectMetadata(QString name)
+DocumentConfigureDialog::selectMetadata(TQString name)
{
int index = 0;