Patch for kioslave/smtp test
Tim Beaulen
tbscope at gmail.com
Sun Jun 24 10:14:51 BST 2007
Hello,
I got the following error:
/home/kde4-devel/kde/src/kdebase/runtime/kioslave/smtp/tests/interactivesmtpserver.cc:
In constructor 'InteractiveSMTPServerWindow::InteractiveSMTPServerWindow(QTcpSocket*,
QWid
get*)':
/home/kde4-devel/kde/src/kdebase/runtime/kioslave/smtp/tests/interactivesmtpserver.cc:143:
error: no matching function for call to
'QHBoxLayout::QHBoxLayout(QVBoxLayout*&)'
/home/kde4-devel/qt-copy/include/QtGui/../../src/gui/kernel/qboxlayout.h:122:
note: candidates are: QHBoxLayout::QHBoxLayout(const QHBoxLayout&)
/home/kde4-devel/qt-copy/include/QtGui/../../src/gui/kernel/qboxlayout.h:110:
note: QHBoxLayout::QHBoxLayout(QWidget*)
/home/kde4-devel/qt-copy/include/QtGui/../../src/gui/kernel/qboxlayout.h:109:
note: QHBoxLayout::QHBoxLayout()
make[2]: *** [runtime/kioslave/smtp/tests/CMakeFiles/interactivesmtpserver.dir/interactivesmtpserver.o]
Error 1
make[1]: *** [runtime/kioslave/smtp/tests/CMakeFiles/interactivesmtpserver.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
I fixed it locally by defining a new widget and adding the horizontal
layout to that widget. Not sure if this is the correct solution, hence
this post here.
Patch:
kde4-devel at localhost ~/kde/src/kdebase/runtime/kioslave/smtp/tests $ svn diff
Index: interactivesmtpserver.cc
===================================================================
--- interactivesmtpserver.cc (revision 679533)
+++ interactivesmtpserver.cc (working copy)
@@ -139,9 +139,11 @@
mTextEdit = new QTextEdit( this );
vlay->addWidget( mTextEdit, 1 );
+ QWidget *mLayoutWidget = new QWidget;
+ vlay->addWidget( mLayoutWidget );
- QHBoxLayout * hlay = new QHBoxLayout( vlay );
-
+ QHBoxLayout * hlay = new QHBoxLayout( mLayoutWidget );
+
mLineEdit = new QLineEdit( this );
mLabel = new QLabel( "&Response:", this );
mLabel->setBuddy( mLineEdit );
More information about the kde-core-devel
mailing list