diff options
author | Michele Calgaro <[email protected]> | 2023-11-05 11:55:18 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-05 20:59:31 +0900 |
commit | 034ed63e8dcd4071ff2857fb066f90b60313216f (patch) | |
tree | d8f02d03c1f9c77442c59c55ea75f5cb6539dec4 /src/gui | |
parent | 59252e910c0a40943329918aeead9293d5ee82e0 (diff) | |
download | tellico-034ed63e8dcd4071ff2857fb066f90b60313216f.tar.gz tellico-034ed63e8dcd4071ff2857fb066f90b60313216f.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit f57d24985e5b3c8b8c070388aedf6fa915b1c316)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/imagewidget.cpp | 6 | ||||
-rw-r--r-- | src/gui/ratingwidget.cpp | 2 | ||||
-rw-r--r-- | src/gui/tablefieldwidget.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/imagewidget.cpp b/src/gui/imagewidget.cpp index c336bf7..556d93d 100644 --- a/src/gui/imagewidget.cpp +++ b/src/gui/imagewidget.cpp @@ -53,7 +53,7 @@ ImageWidget::ImageWidget(TQWidget* parent_, const char* name_) : TQWidget(parent TQVBoxLayout* boxLayout = new TQVBoxLayout(l); boxLayout->addStretch(1); - KButtonBox* box = new KButtonBox(this,Qt::Vertical); + KButtonBox* box = new KButtonBox(this,TQt::Vertical); box->addButton(i18n("Select Image..."), TQT_TQOBJECT(this), TQT_SLOT(slotGetImage())); box->addButton(i18n("Clear"), TQT_TQOBJECT(this), TQT_SLOT(slotClear())); box->layout(); @@ -176,7 +176,7 @@ void ImageWidget::slotLinkOnlyClicked() { void ImageWidget::mousePressEvent(TQMouseEvent* event_) { // Only interested in LMB - if(event_->button() == Qt::LeftButton) { + if(event_->button() == TQt::LeftButton) { // Store the position of the mouse press. // check if position is inside the label if(m_label->geometry().contains(event_->pos())) { @@ -190,7 +190,7 @@ void ImageWidget::mousePressEvent(TQMouseEvent* event_) { void ImageWidget::mouseMoveEvent(TQMouseEvent* event_) { int delay = TQApplication::startDragDistance(); // Only interested in LMB - if(event_->state() & Qt::LeftButton) { + if(event_->state() & TQt::LeftButton) { // only allow drag is the image is non-null, and the drag start point isn't null and the user dragged far enough if(!m_imageID.isEmpty() && !m_dragStart.isNull() && (m_dragStart - event_->pos()).manhattanLength() > delay) { const Data::Image& img = ImageFactory::imageById(m_imageID); diff --git a/src/gui/ratingwidget.cpp b/src/gui/ratingwidget.cpp index eda5cf7..f81b54c 100644 --- a/src/gui/ratingwidget.cpp +++ b/src/gui/ratingwidget.cpp @@ -111,7 +111,7 @@ void RatingWidget::update() { void RatingWidget::mousePressEvent(TQMouseEvent* event_) { // only react to left button - if(event_->button() != Qt::LeftButton) { + if(event_->button() != TQt::LeftButton) { return; } diff --git a/src/gui/tablefieldwidget.cpp b/src/gui/tablefieldwidget.cpp index cdaabec..113a88e 100644 --- a/src/gui/tablefieldwidget.cpp +++ b/src/gui/tablefieldwidget.cpp @@ -226,7 +226,7 @@ void TableFieldWidget::updateFieldHook(Data::FieldPtr, Data::FieldPtr newField_) bool TableFieldWidget::eventFilter(TQObject* obj_, TQEvent* ev_) { if(ev_->type() == TQEvent::MouseButtonPress - && TQT_TQMOUSEEVENT(ev_)->button() == Qt::RightButton) { + && TQT_TQMOUSEEVENT(ev_)->button() == TQt::RightButton) { if(obj_ == m_table->horizontalHeader()) { TQMouseEvent* ev = TQT_TQMOUSEEVENT(ev_); // might be scrolled |