html_edit\href_gui.cpp:41: error: declaration of `QStringList Href_Gui::GetUserC
onfig()' outside of class is not definition
html_edit\href_gui.cpp:42: error: expected unqualified-id before '{' token
html_edit\href_gui.cpp:42: error: expected `,' or `;' before '{' token
mingw32-make[1]: *** [build\.o\win32\href_gui.o] Error 1
mingw32-make[1]: Leaving directory `C:/_current/html_editor'
mingw32-make: *** [release] Error 2
QStringList is not a type! i suppose...
***.h
#ifndef HREF_GUI_H
#define HREF_GUI_H
#include <QStringList>
#include <QActionGroup>
#include <QColorDialog>
#include <QPrinter>
#include <QPrintDialog>
#include <QFileDialog>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
#include <QTextDocumentFragment>
#include <QTextCursor>
#include <QFileDialog>
#include <QString>
#include <QTextStream>
#include <QFontDatabase>
#include <QTextBlockFormat>
#include <QTextListFormat>
#include <QTextFormat>
#include <QTextList>
#include <QTextCodec>
#include <QByteArray>
#include "href_start.h"
//
/* Save file as href_gui.h */
/* Class Href_Gui Created on Fri Jun 2 11:13:27 CEST 2006 */
//
#include <QPointer>
#include <QStringList>
/* typedef QMap<int, QStringList> Userconf;*/
class Href_Gui
: public QDialog,
public Ui
::Href_Gui{
Q_OBJECT
//
public:
static Href_Gui
* self
( QWidget* = 0 );
//
protected:
//
private:
static QPointer<Href_Gui> _self;
//
public slots:
void Acceptvars();
};
//
#endif // HREF_GUI_H
#ifndef HREF_GUI_H
#define HREF_GUI_H
#include <QStringList>
#include <QActionGroup>
#include <QColorDialog>
#include <QPrinter>
#include <QPrintDialog>
#include <QFileDialog>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
#include <QTextDocumentFragment>
#include <QTextCursor>
#include <QFileDialog>
#include <QString>
#include <QTextStream>
#include <QFontDatabase>
#include <QTextBlockFormat>
#include <QTextListFormat>
#include <QTextFormat>
#include <QTextList>
#include <QTextCodec>
#include <QByteArray>
#include "href_start.h"
//
/* Save file as href_gui.h */
/* Class Href_Gui Created on Fri Jun 2 11:13:27 CEST 2006 */
//
#include <QPointer>
#include <QStringList>
/* typedef QMap<int, QStringList> Userconf;*/
class Href_Gui : public QDialog, public Ui::Href_Gui
{
Q_OBJECT
//
public:
static Href_Gui* self( QWidget* = 0 );
QStringList GetUserConfig();
//
protected:
void closeEvent( QCloseEvent* );
//
private:
Href_Gui( QWidget* = 0 );
static QPointer<Href_Gui> _self;
QStringList hrefconfisuser;
//
public slots:
void Acceptvars();
};
//
#endif // HREF_GUI_H
To copy to clipboard, switch view to plain text mode
***.cpp
#include "href_gui.h"
//
/* Save file as href_gui.cpp */
/* Class Href_Gui Created on Fri Jun 2 11:13:28 CEST 2006 */
//
#include <QCloseEvent>
//
QPointer<Href_Gui> Href_Gui::_self = 0L;
//
Href_Gui
* Href_Gui
::self( QWidget* parent
){
if ( !_self )
_self = new Href_Gui( parent );
return _self;
}
//
Href_Gui
::Href_Gui( QWidget* parent
){
setupUi( this );
hrefconfisuser.clear();
connect(okButton, SIGNAL(clicked()), this, SLOT(Acceptvars()));
}
//
void Href_Gui::Acceptvars()
{
QString target
= target_href
->itemText
(target_href
->currentIndex
());
if (te.size() < 1 or url.size() < 1) {
QMessageBox::warning( this, tr
( "Error Text!" ),tr
("Mettete una url valida o un testo valido!"));
}
hrefconfisuser.clear();
hrefconfisuser.append(te);
hrefconfisuser.append(url);
hrefconfisuser.append(target);
accept();
}
{
/* return QString(hrefconfisuser.join("$"));*/
return hrefconfisuser;
}
{
e->accept();
}
#include "href_gui.h"
//
/* Save file as href_gui.cpp */
/* Class Href_Gui Created on Fri Jun 2 11:13:28 CEST 2006 */
//
#include <QCloseEvent>
//
QPointer<Href_Gui> Href_Gui::_self = 0L;
//
Href_Gui* Href_Gui::self( QWidget* parent )
{
if ( !_self )
_self = new Href_Gui( parent );
return _self;
}
//
Href_Gui::Href_Gui( QWidget* parent )
: QDialog( parent )
{
setupUi( this );
hrefconfisuser.clear();
connect(okButton, SIGNAL(clicked()), this, SLOT(Acceptvars()));
}
//
void Href_Gui::Acceptvars()
{
QString te = text_href->text();
QString url = url_href->text();
QString target = target_href->itemText(target_href->currentIndex());
if (te.size() < 1 or url.size() < 1) {
QMessageBox::warning( this, tr( "Error Text!" ),tr("Mettete una url valida o un testo valido!"));
}
hrefconfisuser.clear();
hrefconfisuser.append(te);
hrefconfisuser.append(url);
hrefconfisuser.append(target);
accept();
}
QStringList Href_Gui::GetUserConfig();
{
/* return QString(hrefconfisuser.join("$"));*/
return hrefconfisuser;
}
void Href_Gui::closeEvent( QCloseEvent* e )
{
e->accept();
}
To copy to clipboard, switch view to plain text mode
Bookmarks