summaryrefslogtreecommitdiffstats
path: root/src/softwareimporters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/softwareimporters.cpp')
-rw-r--r--src/softwareimporters.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/softwareimporters.cpp b/src/softwareimporters.cpp
index 2c49bca..24a20ed 100644
--- a/src/softwareimporters.cpp
+++ b/src/softwareimporters.cpp
@@ -41,9 +41,9 @@
/** class TreeImportDialog: */
-TreeImportDialog::TreeImportDialog(TQWidget *tqparent)
+TreeImportDialog::TreeImportDialog(TQWidget *parent)
: KDialogBase(KDialogBase::Swallow, i18n("Import Hierarchy"), KDialogBase::Ok | KDialogBase::Cancel,
- KDialogBase::Ok, tqparent, /*name=*/"ImportHierarchy", /*modal=*/true, /*separator=*/false)
+ KDialogBase::Ok, parent, /*name=*/"ImportHierarchy", /*modal=*/true, /*separator=*/false)
{
TQWidget *page = new TQWidget(this);
TQVBoxLayout *topLayout = new TQVBoxLayout(page, /*margin=*/0, spacingHint());
@@ -70,9 +70,9 @@ int TreeImportDialog::choice()
/** class TextFileImportDialog: */
-TextFileImportDialog::TextFileImportDialog(TQWidget *tqparent)
+TextFileImportDialog::TextFileImportDialog(TQWidget *parent)
: KDialogBase(KDialogBase::Swallow, i18n("Import Text File"), KDialogBase::Ok | KDialogBase::Cancel,
- KDialogBase::Ok, tqparent, /*name=*/"ImportTextFile", /*modal=*/true, /*separator=*/false)
+ KDialogBase::Ok, parent, /*name=*/"ImportTextFile", /*modal=*/true, /*separator=*/false)
{
TQWidget *page = new TQWidget(this);
TQVBoxLayout *topLayout = new TQVBoxLayout(page, /*margin=*/0, spacingHint());
@@ -186,24 +186,24 @@ TQString SoftwareImporters::fromTomboy(TQString tomboy)
return "<html><head><meta name=\"qrichtext\" content=\"1\" /></head><body>" + tomboy + "</body></html>";
}
-Note* SoftwareImporters::insertTitledNote(Basket *tqparent, const TQString &title, const TQString &content, TQt::TextFormat format/* = TQt::PlainText*/, Note *parentNote/* = 0*/)
+Note* SoftwareImporters::insertTitledNote(Basket *parent, const TQString &title, const TQString &content, TQt::TextFormat format/* = TQt::PlainText*/, Note *parentNote/* = 0*/)
{
- Note *nGroup = new Note(tqparent);
+ Note *nGroup = new Note(parent);
- Note *nTitle = NoteFactory::createNoteText(title, tqparent);
+ Note *nTitle = NoteFactory::createNoteText(title, parent);
nTitle->addState(Tag::stateForId("title"));
Note *nContent;
if (format == TQt::PlainText)
- nContent = NoteFactory::createNoteText(content, tqparent);
+ nContent = NoteFactory::createNoteText(content, parent);
else
- nContent = NoteFactory::createNoteHtml(content, tqparent);
+ nContent = NoteFactory::createNoteHtml(content, parent);
if (parentNote == 0)
- parentNote = tqparent->firstNote(); // In the first column!
- tqparent->insertNote(nGroup, parentNote, Note::BottomColumn, TQPoint(), /*animate=*/false);
- tqparent->insertNote(nTitle, nGroup, Note::BottomColumn, TQPoint(), /*animate=*/false);
- tqparent->insertNote(nContent, nTitle, Note::BottomInsert, TQPoint(), /*animate=*/false);
+ parentNote = parent->firstNote(); // In the first column!
+ parent->insertNote(nGroup, parentNote, Note::BottomColumn, TQPoint(), /*animate=*/false);
+ parent->insertNote(nTitle, nGroup, Note::BottomColumn, TQPoint(), /*animate=*/false);
+ parent->insertNote(nContent, nTitle, Note::BottomInsert, TQPoint(), /*animate=*/false);
return nGroup;
}