summaryrefslogtreecommitdiffstats
path: root/parts/astyle/astyle_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/astyle/astyle_widget.cpp')
-rw-r--r--parts/astyle/astyle_widget.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/parts/astyle/astyle_widget.cpp b/parts/astyle/astyle_widget.cpp
index a70c6771..6959fe7b 100644
--- a/parts/astyle/astyle_widget.cpp
+++ b/parts/astyle/astyle_widget.cpp
@@ -53,7 +53,7 @@ AStyleWidget::AStyleWidget(AStylePart * part, bool global, TQWidget *parent, con
connect(Keep_Blocks, TQT_SIGNAL(clicked()), this, TQT_SLOT(styleChanged()));
- TQMap<TQString, TQVariant> option;
+ TQStringVariantMap option;
if ( isGlobalWidget){
Style_Global->hide();
option = m_part->getGlobalOptions();
@@ -172,7 +172,7 @@ AStyleWidget::~AStyleWidget()
void AStyleWidget::accept()
{
- TQMap<TQString, TQVariant>* m_option;
+ TQStringVariantMap* m_option;
if ( isGlobalWidget){
m_option = &(m_part->getGlobalOptions());
m_part->setExtensions(GeneralExtension->text(),true);
@@ -195,8 +195,8 @@ void AStyleWidget::accept()
else if (Style_JAVA->isChecked())
(*m_option)["FStyle"] = "JAVA";
else if (Style_Global->isChecked()){
- TQMap<TQString,TQVariant>& global = m_part->getGlobalOptions();
- TQMap<TQString,TQVariant>& project = m_part->getProjectOptions();
+ TQStringVariantMap& global = m_part->getGlobalOptions();
+ TQStringVariantMap& project = m_part->getProjectOptions();
project=global;
project["FStyle"]="GLOBAL";
}
@@ -264,7 +264,7 @@ void AStyleWidget::accept()
}
if ( isGlobalWidget){
- TQMap<TQString, TQVariant>& project = m_part->getProjectOptions();
+ TQStringVariantMap& project = m_part->getProjectOptions();
if ( project["FStyle"] == "GLOBAL"){
project = m_part->getGlobalOptions();
project["FStyle"] = "GLOBAL";
@@ -272,7 +272,7 @@ void AStyleWidget::accept()
m_part->saveGlobal();
}
-// for ( TQMap<TQString, TQVariant>::ConstIterator iter = m_option->begin();iter != m_option->end();iter++ )
+// for ( TQStringVariantMap::ConstIterator iter = m_option->begin();iter != m_option->end();iter++ )
// {
// kdDebug ( 9009 ) << "widget: " << iter.key() << "=" << iter.data() << endl;
// }