[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/office/kile/src/dialogs
From:       Michel Ludwig <michel.ludwig () kdemail ! net>
Date:       2009-03-25 21:42:31
Message-ID: 1238017351.850898.19718.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 944654 by mludwig:

Fix the signal/slot connection between the icon view and the 'Ok' button.


 M  +6 -1      newfilewizard.cpp  
 M  +2 -0      newfilewizard.h  


--- trunk/extragear/office/kile/src/dialogs/newfilewizard.cpp #944653:944654
@@ -61,7 +61,7 @@
 	}
 
 	m_newDocumentWidget = new NewDocumentWidget(this);
-	connect(m_newDocumentWidget->templateIconView, \
SIGNAL(itemDoubleClicked(QListWidgetItem*)), SLOT(slotButtonClicked(KDialog::OK))); \
+	connect(m_newDocumentWidget->templateIconView, \
SIGNAL(itemDoubleClicked(QListWidgetItem*)), SLOT(slotClickOKButton()));  \
m_templateManager->scanForTemplates();  \
m_newDocumentWidget->templateIconView->setTemplateManager(m_templateManager);  
@@ -175,6 +175,11 @@
 	}
 }
 
+void NewFileWizard::slotClickOKButton()
+{
+	slotButtonClicked(KDialog::Ok);
+}
+
 void NewFileWizard::slotActivated(int index)
 {
 	storeSelectedIcon();
--- trunk/extragear/office/kile/src/dialogs/newfilewizard.h #944653:944654
@@ -42,6 +42,8 @@
 
 protected Q_SLOTS:
 	virtual void slotButtonClicked(int button);
+	void slotClickOKButton();
+
 	void slotActivated(int index);
 
 	void restoreSelectedIcon();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic