Changeset 13939
- Timestamp:
- Feb 3, 2013, 12:31:44 PM (9 years ago)
- Location:
- trunk/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/filterbar.cc
r13937 r13939 227 227 { 228 228 FilterBarComboBox * c = new FilterBarComboBox (this); 229 FilterBarComboBoxDelegate * delegate = new FilterBarComboBoxDelegate ( 0, c);229 FilterBarComboBoxDelegate * delegate = new FilterBarComboBoxDelegate (this, c); 230 230 c->setItemDelegate (delegate); 231 231 … … 234 234 QIcon blankIcon (blankPixmap); 235 235 236 QStandardItemModel * model = new QStandardItemModel ;236 QStandardItemModel * model = new QStandardItemModel (this); 237 237 238 238 QStandardItem * row = new QStandardItem (tr ("All")); … … 393 393 { 394 394 FilterBarComboBox * c = new FilterBarComboBox (this); 395 FilterBarComboBoxDelegate * delegate = new FilterBarComboBoxDelegate ( 0, c);395 FilterBarComboBoxDelegate * delegate = new FilterBarComboBoxDelegate (this, c); 396 396 c->setItemDelegate (delegate); 397 397 … … 427 427 const int hmargin = qMax (int (HIG::PAD), style ()->pixelMetric (QStyle::PM_LayoutHorizontalSpacing)); 428 428 429 myCountLabel = new QLabel ;429 myCountLabel = new QLabel (this); 430 430 h->setSpacing (0); 431 431 h->setContentsMargins (2, 2, 2, 2); … … 437 437 h->addSpacing (hmargin); 438 438 439 myTrackerModel = new QStandardItemModel ;439 myTrackerModel = new QStandardItemModel (this); 440 440 myTrackerCombo = createTrackerCombo (myTrackerModel); 441 441 h->addWidget (myTrackerCombo, 1); … … 446 446 connect (myLineEdit, SIGNAL (textChanged (QString)), this, SLOT (onTextChanged (QString))); 447 447 448 QPushButton * p = new QPushButton ;448 QPushButton * p = new QPushButton (this); 449 449 QIcon icon = QIcon::fromTheme ("edit-clear", style ()->standardIcon (QStyle::SP_DialogCloseButton)); 450 450 int iconSize = style ()->pixelMetric (QStyle::PM_SmallIconSize); -
trunk/qt/mainwin.cc
r13928 r13939 233 233 connect (myAltSpeedAction, SIGNAL (triggered ()), this, SLOT (toggleSpeedMode ())); 234 234 235 QMenu * menu = new QMenu ( );235 QMenu * menu = new QMenu (this); 236 236 menu->addAction (ui.action_OpenFile); 237 237 menu->addAction (ui.action_AddURL); … … 430 430 a->addAction (ui.action_SessionRatio); 431 431 a->addAction (ui.action_SessionTransfer); 432 m = new QMenu ( );432 m = new QMenu (this); 433 433 m->addAction (ui.action_TotalRatio); 434 434 m->addAction (ui.action_TotalTransfer); … … 462 462 stockRatios << 0.25 << 0.50 << 0.75 << 1 << 1.5 << 2 << 3; 463 463 464 menu = new QMenu ;464 menu = new QMenu (this); 465 465 sub = menu->addMenu (tr ("Limit Download Speed")); 466 466 … … 1458 1458 menu->addAction (ui.action_OpenFolder); 1459 1459 1460 QAction * sep = new QAction ( this);1460 QAction * sep = new QAction (menu); 1461 1461 sep->setSeparator (true); 1462 1462 menu->addAction (sep); … … 1471 1471 menu->addAction (ui.action_Pause); 1472 1472 1473 sep = new QAction ( this);1473 sep = new QAction (menu); 1474 1474 sep->setSeparator (true); 1475 1475 menu->addAction (sep); … … 1478 1478 menu->addAction (ui.action_CopyMagnetToClipboard); 1479 1479 1480 sep = new QAction ( this);1480 sep = new QAction (menu); 1481 1481 sep->setSeparator (true); 1482 1482 menu->addAction (sep);
Note: See TracChangeset
for help on using the changeset viewer.