r15409 by craig - #9319: Fix some incorrect signals from Qt4 port

scribus-commit scribus-commit at lists.scribus.net
Wed Aug 11 23:54:32 CEST 2010


Author: craig
Date: Wed Aug 11 21:54:32 2010
New Revision: 15409

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15409
Log:
#9319: Fix some incorrect signals from Qt4 port

Modified:
    branches/Version135/Scribus/scribus/tabcheckdoc.cpp
    branches/Version135/Scribus/scribus/ui/createrange.cpp
    branches/Version135/Scribus/scribus/ui/createrange.h

Modified: branches/Version135/Scribus/scribus/tabcheckdoc.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15409&path=/branches/Version135/Scribus/scribus/tabcheckdoc.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/tabcheckdoc.cpp (original)
+++ branches/Version135/Scribus/scribus/tabcheckdoc.cpp Wed Aug 11 21:54:32 2010
@@ -272,7 +272,7 @@
 	curCheckProfile->clear();
 	
 	disconnect(curCheckProfile, SIGNAL(activated(const QString&)), this, SLOT(setProfile(const QString&)));
-	disconnect(curCheckProfile, SIGNAL(textChanged(const QString&)), this, SLOT(setProfile(const QString&)));	
+	disconnect(curCheckProfile, SIGNAL(editTextChanged(const QString&)), this, SLOT(setProfile(const QString&)));	
 	CheckerPrefsList::Iterator it;
 	int j,i=0;
 	for (it = checkerProfile.begin(), j=0; it != checkerProfile.end(); ++it, ++j)
@@ -283,14 +283,14 @@
 	}
 	curCheckProfile->setCurrentIndex(i);
 	connect(curCheckProfile, SIGNAL(activated(const QString&)), this, SLOT(setProfile(const QString&)));
-	connect(curCheckProfile, SIGNAL(textChanged(const QString&)), this, SLOT(setProfile(const QString&)));
+	connect(curCheckProfile, SIGNAL(editTextChanged(const QString&)), this, SLOT(setProfile(const QString&)));
 	tempNewProfileName="";
 }
 
 void TabCheckDoc::delProf()
 {
 	disconnect(curCheckProfile, SIGNAL(activated(const QString&)), this, SLOT(setProfile(const QString&)));
-	disconnect(curCheckProfile, SIGNAL(textChanged(const QString&)), this, SLOT(setProfile(const QString&)));
+	disconnect(curCheckProfile, SIGNAL(editTextChanged(const QString&)), this, SLOT(setProfile(const QString&)));
 	checkerProfile.remove(currentProfile);
 	updateProfile(checkerProfile.begin().key());
 	curCheckProfile->clear();
@@ -300,7 +300,7 @@
 		curCheckProfile->addItem(it.key());
 	setCurrentComboItem(curCheckProfile, currentProfile);
 	connect(curCheckProfile, SIGNAL(activated(const QString&)), this, SLOT(setProfile(const QString&)));
-	connect(curCheckProfile, SIGNAL(textChanged(const QString&)), this, SLOT(setProfile(const QString&)));
+	connect(curCheckProfile, SIGNAL(editTextChanged(const QString&)), this, SLOT(setProfile(const QString&)));
 	if (checkerProfile.count() == 1)
 		removeProfile->setEnabled(false);
 }

Modified: branches/Version135/Scribus/scribus/ui/createrange.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15409&path=/branches/Version135/Scribus/scribus/ui/createrange.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/ui/createrange.cpp (original)
+++ branches/Version135/Scribus/scribus/ui/createrange.cpp Wed Aug 11 21:54:32 2010
@@ -36,7 +36,7 @@
 	if (currText.length()>0)
 		basicRangeListBox->addItem(currText);
 	// signals and slots connections
-	connect(tabWidget, SIGNAL(currentChanged(QWidget*)), this, SLOT(selectRangeType(QWidget*)));
+	connect(tabWidget, SIGNAL(currentChanged(int)), this, SLOT(selectRangeType(int)));
 	connect(basicRangeAddButton, SIGNAL(clicked()), this, SLOT(basicAddToRange()));
 	connect(basicRangeDelButton, SIGNAL(clicked()), this, SLOT(basicDelFromRange()));
 	connect(basicConsecutiveRadioButton, SIGNAL(clicked()), this, SLOT(basicSelectRangeTypeConsec()));
@@ -161,7 +161,7 @@
 	basicCommaSepLineEdit->setEnabled(!basicRangeTypeIsConsecutive);
 }
 
-void CreateRange::selectRangeType(QWidget *)
+void CreateRange::selectRangeType(int)
 {
 	m_RangeType=tabWidget->currentIndex();
 }

Modified: branches/Version135/Scribus/scribus/ui/createrange.h
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15409&path=/branches/Version135/Scribus/scribus/ui/createrange.h
==============================================================================
--- branches/Version135/Scribus/scribus/ui/createrange.h (original)
+++ branches/Version135/Scribus/scribus/ui/createrange.h Wed Aug 11 21:54:32 2010
@@ -23,7 +23,7 @@
 		void getCreateRangeData(CreateRangeData&);
 		
 	protected slots:
-		void selectRangeType(QWidget *);
+		void selectRangeType(int);
 		void basicAddToRange();
 		void basicDelFromRange();
 		void basicMoveUp();




More information about the scribus-commit mailing list