comparison examples/itemviews/customsortfiltermodel/window.d @ 282:256ab6cb8e85

Signals look-up andNew syntax for connect. The old one will not work from now on. This will allow for the signals overload. Although changes are done for both D1 and D2 versions, D1 won't work because of compiler bugs. I am tired of waiting for fixes.
author eldar
date Fri, 16 Oct 2009 02:43:59 +0000
parents 26036621830e
children 7a3c43424dca
comparison
equal deleted inserted replaced
281:7f2e3ffa1c33 282:256ab6cb8e85
100 toDateEdit = new QDateEdit; 100 toDateEdit = new QDateEdit;
101 toDateEdit.setDate(new QDate(2099, 12, 31)); 101 toDateEdit.setDate(new QDate(2099, 12, 31));
102 toLabel = new QLabel(tr("&To:")); 102 toLabel = new QLabel(tr("&To:"));
103 toLabel.setBuddy(toDateEdit); 103 toLabel.setBuddy(toDateEdit);
104 104
105 filterPatternLineEdit.textChanged.connect(&this.textFilterChanged); 105 connect!("textChanged")(filterPatternLineEdit, &this.textFilterChanged);
106 filterSyntaxComboBox.currentIndexChanged.connect(&this.textFilterChanged); 106 connect!("currentIndexChanged")(filterSyntaxComboBox, &this.textFilterChanged);
107 filterCaseSensitivityCheckBox.toggled.connect(&this.textFilterChanged); 107 connect!("toggled")(filterCaseSensitivityCheckBox, &this.textFilterChanged);
108 fromDateEdit.dateChanged.connect(&this.dateFilterChanged); 108 connect!("dateChanged")(fromDateEdit, &this.dateFilterChanged);
109 toDateEdit.dateChanged.connect(&this.dateFilterChanged); 109 connect!("dateChanged")(toDateEdit, &this.dateFilterChanged);
110 110
111 proxyView = new QTreeView; 111 proxyView = new QTreeView;
112 proxyView.setRootIsDecorated(false); 112 proxyView.setRootIsDecorated(false);
113 proxyView.setAlternatingRowColors(true); 113 proxyView.setAlternatingRowColors(true);
114 proxyView.setModel(proxyModel); 114 proxyView.setModel(proxyModel);