All pastes #738421 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-16 09:22 UTC
rendered paste body


#include <qlabel.h>
#include <kcombobox.h>

#include "remotehelpwidget.h"

remotehelpWidget::remotehelpWidget(QWidget* parent, const char* name, WFlags fl)
        : remotehelpWidgetBase(parent,name,fl)
{
remoteHostBox = new KHistoryCombo();
remoteHostBox.setMaxCount(10);
//remoteHostBox.addToHistory(new QString("Test"));

}

remotehelpWidget::~remotehelpWidget()
{}

/*$SPECIALIZATION$*/
void remotehelpWidget::button_clicked()
{
    if ( label->text().isEmpty() )
    {
        label->setText( "Hello World!" );
    }
    else
    {
        label->clear();
    }
}



#include "remotehelpwidget.moc"

cd '/mnt/raid/alex/remotehelp/debug' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k 
gmake all-recursive
Making all in doc
Making all in .
gmake[3]: Nothing to be done for `all-am'.
Making all in en
gmake[3]: Nothing to be done for `all'.
Making all in po
gmake[2]: Nothing to be done for `all'.
Making all in src
if g++ -DHAVE_CONFIG_H -I. -I/mnt/raid/alex/remotehelp/src -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline -O0 -g3 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -MT remotehelpwidget.o -MD -MP -MF ".deps/remotehelpwidget.Tpo" -c -o remotehelpwidget.o /mnt/raid/alex/remotehelp/src/remotehelpwidget.cpp; then mv -f ".deps/remotehelpwidget.Tpo" ".deps/remotehelpwidget.Po"; else rm -f ".deps/remotehelpwidget.Tpo"; exit 1; fi
/mnt/raid/alex/remotehelp/src/remotehelpwidget.cpp: In constructor 'remotehelpWidget::remotehelpWidget(QWidget*, const char*, uint)':
/mnt/raid/alex/remotehelp/src/remotehelpwidget.cpp:12: error: request for member 'setMaxCount' in '((remotehelpWidget*)this)->remotehelpWidget::<anonymous>.remotehelpWidgetBase::remoteHostBox', which is of non-class type 'KHistoryCombo*'
gmake[2]: *** [remotehelpwidget.o] Error 1
gmake[2]: Target `all' not remade because of errors.
gmake[1]: *** [all-recursive] Error 1
gmake[2]: Nothing to be done for `all-am'.
gmake: *** [all] Error 2
*** Exited with status: 2 ***