Removed the Configure button from the LDraw path config dialog, it's no longer needed

Sat, 25 May 2013 02:15:25 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 25 May 2013 02:15:25 +0300
changeset 259
69a842af73f7
parent 258
f9c48d4481e1
child 260
a3bab31c7e27

Removed the Configure button from the LDraw path config dialog, it's no longer needed

src/dialogs.cpp file | annotate | diff | comparison | revisions
src/dialogs.h file | annotate | diff | comparison | revisions
--- a/src/dialogs.cpp	Sat May 25 02:13:11 2013 +0300
+++ b/src/dialogs.cpp	Sat May 25 02:15:25 2013 +0300
@@ -253,9 +253,6 @@
 	btn_findPath = new QPushButton;
 	btn_findPath->setIcon (getIcon ("folder"));
 	
-	btn_tryConfigure = new QPushButton ("Configure");
-	btn_tryConfigure->setIcon (getIcon ("settings"));
-	
 	btn_cancel = new QPushButton;
 	
 	if (validDefault == false) {
@@ -267,7 +264,6 @@
 	}
 	
 	dbb_buttons = new QDialogButtonBox (QDialogButtonBox::Ok);
-	dbb_buttons->addButton (btn_tryConfigure, QDialogButtonBox::ActionRole);
 	dbb_buttons->addButton (btn_cancel, QDialogButtonBox::RejectRole);
 	okButton ()->setEnabled (false);
 	
@@ -288,7 +284,6 @@
 	
 	connect (le_path, SIGNAL (textEdited (QString)), this, SLOT (slot_tryConfigure ()));
 	connect (btn_findPath, SIGNAL (clicked ()), this, SLOT (slot_findPath ()));
-	connect (btn_tryConfigure, SIGNAL (clicked ()), this, SLOT (slot_tryConfigure ()));
 	connect (dbb_buttons, SIGNAL (accepted ()), this, SLOT (accept ()));
 	connect (dbb_buttons, SIGNAL (rejected ()), this, (validDefault) ? SLOT (reject ()) : SLOT (slot_exit ()));
 	
--- a/src/dialogs.h	Sat May 25 02:13:11 2013 +0300
+++ b/src/dialogs.h	Sat May 25 02:15:25 2013 +0300
@@ -108,7 +108,7 @@
 	
 	QLabel* lb_resolution;
 	QLineEdit* le_path;
-	QPushButton* btn_findPath, *btn_tryConfigure, *btn_cancel;
+	QPushButton* btn_findPath, *btn_cancel;
 	QDialogButtonBox* dbb_buttons;
 	const bool m_validDefault;
 	

mercurial