diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 14:35:51 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 14:35:51 +0000 |
commit | 7af884d886e2428d5b28e9cf7d81c97d7e378123 (patch) | |
tree | 64fe5f9f02f7d338baa54c3a380e43a66ae45f8f /quanta/treeviews/templatestreeview.cpp | |
parent | af2166652dfcfacffa91a7e1466e3abed19862ce (diff) | |
download | tdewebdev-7af884d886e2428d5b28e9cf7d81c97d7e378123.tar.gz tdewebdev-7af884d886e2428d5b28e9cf7d81c97d7e378123.zip |
[kdewebdev/quanta] fix deprecation warnings; make compatible with QT_NO_ASCII_CAST flag
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1214823 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews/templatestreeview.cpp')
-rw-r--r-- | quanta/treeviews/templatestreeview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp index 0b9973e8..f1eaca73 100644 --- a/quanta/treeviews/templatestreeview.cpp +++ b/quanta/treeviews/templatestreeview.cpp @@ -259,7 +259,7 @@ void TemplatesTreeView::slotMenu(KListView*, TQListViewItem *item, const TQPoint return; } setSelected(item, true); - bool hasProject = m_projectName; + bool hasProject = !m_projectName.isEmpty(); m_folderMenu->setItemVisible(m_insertFolderInProject, hasProject); m_fileMenu->setItemVisible(m_insertFileInProject, hasProject); @@ -373,7 +373,7 @@ void TemplatesTreeView::slotOpen() /** No descriptions */ void TemplatesTreeView::slotNewDir() { - NewTemplateDirDlg *createDirDlg = new NewTemplateDirDlg(this,i18n("Create New Template Folder")); + NewTemplateDirDlg *createDirDlg = new NewTemplateDirDlg(this,i18n("Create New Template Folder").ascii()); createDirDlg->typesCombo->insertItem(typeToi18n["text/all"]); createDirDlg->typesCombo->insertItem(typeToi18n["file/all"]); createDirDlg->typesCombo->insertItem(typeToi18n["template/all"]); @@ -564,7 +564,7 @@ void TemplatesTreeView::slotProperties() //Always add the Quanta directory page TQFrame *quantaDirPage = propDlg->addPage(i18n("Quanta Template")); TQVBoxLayout *topLayout = new TQVBoxLayout( quantaDirPage); - m_quantaProperties = new QuantaPropertiesPage( quantaDirPage, i18n("Quanta") ); + m_quantaProperties = new QuantaPropertiesPage( quantaDirPage, i18n("Quanta").ascii() ); m_quantaProperties->typesCombo->insertItem(typeToi18n["text/all"]); m_quantaProperties->typesCombo->insertItem(typeToi18n["file/all"]); @@ -982,7 +982,7 @@ void TemplatesTreeView::slotSendInMail() TQStringList attachmentFile; attachmentFile += createTemplateTarball(); - TagMailDlg *mailDlg = new TagMailDlg( this, i18n("Send template in email")); + TagMailDlg *mailDlg = new TagMailDlg( this, i18n("Send template in email").ascii() ); TQString toStr; TQString message = i18n("Hi,\n This is a Quanta Plus [http://quanta.kdewebdev.org] template tarball.\n\nHave fun.\n"); TQString titleStr; |