Fix #984 without breaking topic input
[quassel.git] / src / qtui / chatviewsearchcontroller.h
index 83c904c..9e3adf5 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -91,6 +91,9 @@ private:
 
 class SearchHighlightItem : public QObject, public QGraphicsItem {
   Q_OBJECT
+#if QT_VERSION >= 0x040600
+  Q_INTERFACES(QGraphicsItem)
+#endif
 
 public:
   SearchHighlightItem(QRectF wordRect, QGraphicsItem *parent = 0);
@@ -110,7 +113,7 @@ private slots:
 private:
   QRectF _boundingRect;
   bool _highlighted;
-  qreal _alpha;
+  int _alpha;
   QTimeLine _timeLine;
 };