Mercurial > projects > qtd
comparison examples/desktop/systray/window.d @ 339:4e31cbd9e20c
fix enumeration problems. requires patched dmd
author | Eldar Insafutdinov |
---|---|
date | Sun, 09 May 2010 00:52:49 +0100 |
parents | 7a3c43424dca |
children | 31520b2c0b3c |
comparison
equal
deleted
inserted
replaced
338:e65f08f6262b | 339:4e31cbd9e20c |
---|---|
231 } | 231 } |
232 | 232 |
233 void createActions() | 233 void createActions() |
234 { | 234 { |
235 minimizeAction = new QAction(tr("Mi&nimize"), this); | 235 minimizeAction = new QAction(tr("Mi&nimize"), this); |
236 connect(minimizeAction, "activated", this, "hide"); | 236 connect(minimizeAction, "triggered", this, "hide"); |
237 | 237 |
238 maximizeAction = new QAction(tr("Ma&ximize"), this); | 238 maximizeAction = new QAction(tr("Ma&ximize"), this); |
239 connect(maximizeAction, "activated", this, "showMaximized"); | 239 connect(maximizeAction, "triggered", this, "showMaximized"); |
240 | 240 |
241 restoreAction = new QAction(tr("&Restore"), this); | 241 restoreAction = new QAction(tr("&Restore"), this); |
242 connect(restoreAction, "activated", this, "showNormal"); | 242 connect(restoreAction, "triggered", this, "showNormal"); |
243 | 243 |
244 quitAction = new QAction(tr("&Quit"), this); | 244 quitAction = new QAction(tr("&Quit"), this); |
245 connect(quitAction, "triggered", qApp(), "quit"); | 245 connect(quitAction, "triggered", qApp(), "quit"); |
246 } | 246 } |
247 | 247 |