Changeset 6166 for trunk/qt4-gui/src/userevents
- Timestamp:
- 04/22/08 04:18:22 (7 months ago)
- Location:
- trunk/qt4-gui/src/userevents
- Files:
-
- 2 modified
-
userviewevent.cpp (modified) (4 diffs)
-
userviewevent.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/userevents/userviewevent.cpp
r6160 r6166 82 82 83 83 myMessageView = new MLView(); 84 myMessageView->setSizeHintLines(5); 84 85 myReadSplitter->addWidget(myMessageView); 85 86 … … 92 93 SLOT(sentEvent(ICQEvent*))); 93 94 94 QGroupBox* h_action= new QGroupBox();95 myActionsBox = new QGroupBox(); 95 96 myMainWidget->addSpacing(10); 96 myMainWidget->addWidget( h_action);97 98 QHBoxLayout* h_action_lay = new QHBoxLayout( h_action);97 myMainWidget->addWidget(myActionsBox); 98 99 QHBoxLayout* h_action_lay = new QHBoxLayout(myActionsBox); 99 100 100 101 myRead1Button = new QPushButton(); … … 637 638 myRead3Button->setText(""); 638 639 myRead4Button->setText(""); 639 myRead1Button->setEnabled(false);640 myRead2Button->setEnabled(false);641 myRead3Button->setEnabled(false);642 myRead4Button->setEnabled(false);643 640 myEncoding->setEnabled(true); 644 641 … … 763 760 } // if 764 761 765 if (!myRead1Button->text().isEmpty())766 myRead1Button->setEnabled(true);767 if (!myRead2Button->text().isEmpty())768 myRead2Button->setEnabled(true);769 if (!myRead3Button->text().isEmpty()) 770 myRead3Button->setEnabled(true);771 if (!myRead4Button->text().isEmpty())772 myRead4Button->setEnabled(true);762 myRead1Button->setEnabled(!myRead1Button->text().isEmpty()); 763 myRead2Button->setEnabled(!myRead2Button->text().isEmpty()); 764 myRead3Button->setEnabled(!myRead3Button->text().isEmpty()); 765 myRead4Button->setEnabled(!myRead4Button->text().isEmpty()); 766 767 myActionsBox->setVisible( 768 myRead1Button->isEnabled() || myRead2Button->isEnabled() || 769 myRead3Button->isEnabled() || myRead4Button->isEnabled()); 773 770 774 771 myRead1Button->setFocus(); -
trunk/qt4-gui/src/userevents/userviewevent.h
r6108 r6166 25 25 26 26 class QCheckBox; 27 class QGroupBox; 27 28 class QPushButton; 28 29 class QSplitter; … … 54 55 CUserEvent* myCurrentEvent; 55 56 QCheckBox* myAutoCloseCheck; 57 QGroupBox* myActionsBox; 56 58 QPushButton* myRead1Button; 57 59 QPushButton* myRead2Button;
