On Mon, 2006-08-14 at 23:22 +0200, Gianluca Sforna wrote:
> Anyway, also have a look at
> http://dev.openwengo.com/trac/openwengo/trac.cgi/ticket/850
> you will need it.

I actually solved it myself, in a different way. Here's my patch:

Index: wengophone/src/presentation/qt/chat/QtChatEditWidget.cpp
===================================================================
--- wengophone/src/presentation/qt/chat/QtChatEditWidget.cpp    (revision 7177)
+++ wengophone/src/presentation/qt/chat/QtChatEditWidget.cpp    (working copy)
@@ -21,14 +21,17 @@

 #include <util/Logger.h>

-#include <QtGui/QtGUi>
+#include <QtGui/QtGui>
+#include <QtGui/QFrame>

 #include <stdio.h>

 QtChatEditWidget::QtChatEditWidget(QWidget *parent)
 : QTextEdit(parent){
        setAcceptDrops(true);
-       setFrameStyle(QFrame::Shape::NoFrame | QFrame::Shadow::Plain);
+       // This wouldn't compile on GNU/Linux, with QT 4.1.2
+       // setFrameStyle(QFrame::Shape::NoFrame | QFrame::Shadow::Plain);
+       setFrameStyle(QFrame::NoFrame | QFrame::Plain);
 }

 void QtChatEditWidget::dragEnterEvent(QDragEnterEvent *event){
Index: wengophone/src/presentation/qt/chat/QtChatHistoryWidget.cpp
===================================================================
--- wengophone/src/presentation/qt/chat/QtChatHistoryWidget.cpp (revision 7177)
+++ wengophone/src/presentation/qt/chat/QtChatHistoryWidget.cpp (working copy)
@@ -25,7 +25,9 @@

 QtChatHistoryWidget::QtChatHistoryWidget(QWidget * parent)
 : QTextBrowser(parent){
-       setFrameStyle(QFrame::Shape::NoFrame | QFrame::Shadow::Plain);
+       // This wouldn't compile on GNU/Linux, qt-4.1.2
+       // setFrameStyle(QFrame::Shape::NoFrame | QFrame::Shadow::Plain);
+       setFrameStyle(QFrame::NoFrame | QFrame::Plain);
        setContextMenuPolicy(Qt::CustomContextMenu);
        makeActions();
        connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), 
SLOT(showContextMenuSlot(const QPoint &)));


It now does compile! Wahoo!

-- 
Maciej Bliziński <[EMAIL PROTECTED]>
http://automatthias.wordpress.com

_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to