summaryrefslogtreecommitdiffstats
path: root/src/gui/imagewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/imagewidget.cpp')
-rw-r--r--src/gui/imagewidget.cpp6
1 files changed, 3 insertions, 3 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);