+ int newOffset = event->pos().x() - dragStartX;
+ if(newOffset > 0)
+ offset = 0;
+ else if(width() < textWidth || offset < newOffset)
+ offset = newOffset;
+// qDebug() << offset << (width() - textWidth) << width() << textWidth;
+// if(offset < width() - textWidth)
+// offset = width() - textWidth;