- Enable back border of drop-down list (by nemo)
authorunc0rr
Fri, 03 Apr 2009 16:35:59 +0000
changeset 1940 bbdca883b5f9
parent 1939 4b8e4cd9e7c0
child 1941 b1ef1f86148c
- Enable back border of drop-down list (by nemo) - Move const visibility to public... probably I'll make use of it in future (by me)
QTfrontend/ammoSchemeModel.cpp
QTfrontend/ammoSchemeModel.h
QTfrontend/main.cpp
--- a/QTfrontend/ammoSchemeModel.cpp	Fri Apr 03 16:33:33 2009 +0000
+++ b/QTfrontend/ammoSchemeModel.cpp	Fri Apr 03 16:35:59 2009 +0000
@@ -41,8 +41,8 @@
 
 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) :
 	QAbstractTableModel(parent),
-	fileConfig(fileName, QSettings::IniFormat),
-	numberOfDefaultSchemes(2)
+	numberOfDefaultSchemes(2),
+	fileConfig(fileName, QSettings::IniFormat)
 {
 	QStringList predefSchemesNames;
 	predefSchemesNames
--- a/QTfrontend/ammoSchemeModel.h	Fri Apr 03 16:33:33 2009 +0000
+++ b/QTfrontend/ammoSchemeModel.h	Fri Apr 03 16:35:59 2009 +0000
@@ -40,6 +40,8 @@
 	bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
 	QVariant data(const QModelIndex &index, int role) const;
 
+	const int numberOfDefaultSchemes;
+
 public slots:
 	void Save();
 
@@ -53,8 +55,6 @@
 	QSettings fileConfig;
 
 	QStringList spNames;
-
-	const int numberOfDefaultSchemes;
 };
 
 class NetAmmoSchemeModel : public QAbstractTableModel
--- a/QTfrontend/main.cpp	Fri Apr 03 16:33:33 2009 +0000
+++ b/QTfrontend/main.cpp	Fri Apr 03 16:35:59 2009 +0000
@@ -178,9 +178,6 @@
 			"QComboBox::down-arrow {"
 				"image: url(\":/res/dropdown.png\");"
 			"}"
-			"QComboBox QAbstractItemView {"
-				"border: solid transparent;"
-			"}"
 			
 			"VertScrArea {"
 				"background-image: url(\":/res/panelbg.png\");"