Skip to content
Permalink
Browse files

Using common code for list of encodings

  • Loading branch information
ccrook committed Apr 29, 2013
1 parent 18786ad commit ff92f4d3e832dd824691393bf0f4baa8be1eb9cd
Showing with 2 additions and 11 deletions.
  1. +2 −11 src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp
@@ -16,7 +16,7 @@
#include "qgisinterface.h"
#include "qgscontexthelp.h"
#include "qgslogger.h"

#include "qgsvectordataprovider.h"
#include "qgsdelimitedtextprovider.h"
#include "qgsdelimitedtextfile.h"

@@ -53,16 +53,7 @@ QgsDelimitedTextSourceSelect::QgsDelimitedTextSourceSelect( QWidget * parent, Qt
}

cmbEncoding->clear();
QStringList codecs;
foreach ( QByteArray codec, QTextCodec::availableCodecs() )
{
codecs.append( codec );
}
codecs.sort();
foreach ( QString codec, codecs )
{
cmbEncoding->addItem( codec );
}
cmbEncoding->addItems( QgsVectorDataProvider::availableEncodings());
cmbEncoding->setCurrentIndex( cmbEncoding->findText( "UTF-8" ) );
loadSettings();

0 comments on commit ff92f4d

Please sign in to comment.
You can’t perform that action at this time.