changeset 4:d8f82945a6ab

Re #243: Create "New Army" dialog in Qt# app * Remove unnecessary delegate creation and use built-in auto-delegate wrapping * Remove unnecessary marking as "signal" method - not needed when using delegates
author IBBoard <dev@ibboard.co.uk>
date Mon, 25 Jan 2010 20:44:39 +0000
parents ac1bf60edf63
children 1bd8febee385
files MainWindow.cs
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/MainWindow.cs	Sat Jan 23 20:54:42 2010 +0000
     1.2 +++ b/MainWindow.cs	Mon Jan 25 20:44:39 2010 +0000
     1.3 @@ -38,10 +38,9 @@
     1.4  		
     1.5  		private void ConnectMenuActions()
     1.6  		{
     1.7 -			QObject.Connect(layout.actionCreateArmy, Qt.SIGNAL("triggered()"), delegate(){CreateNewArmy();});
     1.8 +			QObject.Connect(layout.actionCreateArmy, Qt.SIGNAL("triggered()"), CreateNewArmy);
     1.9  		}
    1.10  		
    1.11 -		[Q_SLOT()]
    1.12  		private void CreateNewArmy()
    1.13  		{
    1.14  			NewArmyDialog dialog = new NewArmyDialog();