void DirectionalButton::pointerButtonDownEvent(const PointerEvent& event) { ILOG_TRACE_W(ILX_DIRBUTTON); __dbThread->cancel(); __dbThread->setTarget(this); __dbThread->start(); _buttonFlag = (ButtonFlags) (_buttonFlag | PressedDown); if (_icon) _icon->setState(PressedState); update(); sigPressed(); }
void ToolButton::pointerButtonDownEvent(const PointerEvent& event) { ILOG_TRACE_W(ILX_TOOLBUTTON); if (_tbOptions & Repeatable) { __tbThread->cancel(); __tbThread->setTarget(this); __tbThread->start(); } _buttonFlag = (ButtonFlags) (_buttonFlag | PressedDown); if (_icon) _icon->setState(PressedState); update(); sigPressed(); }
EditAccount::EditAccount( QWidget* parent, const char* name, Qt::WFlags fl ) : QDialog(parent, fl) , account(0) , accountNameInput(new QLineEdit) { setupUi(this); setObjectName(name); //connect custom slots connect(setSignatureButton,SIGNAL(clicked()),SLOT(sigPressed())); connect(accountType,SIGNAL(currentIndexChanged(int)),SLOT(typeChanged(int))); connect(authentication,SIGNAL(currentIndexChanged(int)),SLOT(authChanged(int))); connect(emailInput,SIGNAL(textChanged(QString)),SLOT(emailModified())); connect(pushCheckBox,SIGNAL(stateChanged(int)),SLOT(pushCheckChanged(int))); connect(intervalCheckBox,SIGNAL(stateChanged(int)),SLOT(intervalCheckChanged(int))); // this functionality is not currently used //connect(mailboxButton,SIGNAL(clicked()),SLOT(configureFolders())); mailboxButton->hide(); emailTyped = false; QtopiaApplication::setInputMethodHint(mailPortInput, QtopiaApplication::Number); QtopiaApplication::setInputMethodHint(smtpPortInput, QtopiaApplication::Number); const QString uncapitalised("email noautocapitalization"); // These fields should not be autocapitalised QtopiaApplication::setInputMethodHint(mailUserInput, QtopiaApplication::Named, uncapitalised); QtopiaApplication::setInputMethodHint(mailServerInput, QtopiaApplication::Named, uncapitalised); QtopiaApplication::setInputMethodHint(emailInput, QtopiaApplication::Named, uncapitalised); QtopiaApplication::setInputMethodHint(smtpUsernameInput, QtopiaApplication::Named, uncapitalised); QtopiaApplication::setInputMethodHint(smtpServerInput, QtopiaApplication::Named, uncapitalised); // Too easy to mistype numbers in phone mode mailPasswInput->installEventFilter( this ); accountNameInput->installEventFilter( this ); defaultMailCheckBox->installEventFilter( this ); PortValidator *pv = new PortValidator(this); mailPortInput->setValidator(pv); smtpPortInput->setValidator(pv); mailPasswInput->setEchoMode(QLineEdit::PasswordEchoOnEdit); #ifdef QT_NO_OPENSSL encryption->hide(); lblEncryption->hide(); authentication->hide(); lblAuthentication->hide(); smtpUsernameInput->hide(); lblSmtpUsername->hide(); smtpPasswordInput->hide(); lblSmtpPassword->hide(); encryptionIncoming->hide(); lblEncryptionIncoming->hide(); #else authentication->addItem("INCOMING"); // notr smtpPasswordInput->setEchoMode(QLineEdit::PasswordEchoOnEdit); #endif typeChanged(1); createTabbedView(); setLayoutDirection( qApp->layoutDirection() ); currentTabChanged(0); }
//==================================== // receive mouse double click event //------------------------------------ void SCCFig::mouseDoubleClickEvent ( QMouseEvent* ) { sigPressed ( mID ); }