Thank you both guys for fast answers.
@tbscope:
I did try your code, and did as you wrote in your edit, but C::B threw me new errors:
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:14:7: warning: no newline at end of file
C
:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.
cpp:6: error
: default argument given
for parameter
1 of `LoginInterface
::LoginInterface(QWidget*, Qt
::WindowFlags)'C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C
:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.
cpp:6: error
: default argument given
for parameter
2 of `LoginInterface
::LoginInterface(QWidget*, Qt
::WindowFlags)'C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C
:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.
cpp: In constructor `LoginInterface
::LoginInterface(QWidget*, Qt
::WindowFlags)':C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: error: `QLineEdit' was not declared in this scope
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: error: `inputText' was not declared in this scope
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: error: `QLineEdit' is not a type
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: warning: unused variable 'QLineEdit'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:14:7: warning: no newline at end of file
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:6: error: default argument given for parameter 1 of `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:6: error: default argument given for parameter 2 of `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp: In constructor `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)':
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: error: `QLineEdit' was not declared in this scope
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: error: `inputText' was not declared in this scope
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: error: `QLineEdit' is not a type
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:12: warning: unused variable 'QLineEdit'
To copy to clipboard, switch view to plain text mode
So I did add following code under #include <QLabel>:
#include <QLineEdit>
#include <QLineEdit>
To copy to clipboard, switch view to plain text mode
Now I'm getting only these errors (I assume they're about LoginInterface constructor.):
C
:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.
cpp:7: error
: default argument given
for parameter
1 of `LoginInterface
::LoginInterface(QWidget*, Qt
::WindowFlags)'C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C
:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.
cpp:7: error
: default argument given
for parameter
2 of `LoginInterface
::LoginInterface(QWidget*, Qt
::WindowFlags)'C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:7: error: default argument given for parameter 1 of `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.cpp:7: error: default argument given for parameter 2 of `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
C:\Documents and Settings\Kamil\Pulpit\The Bloody War\client_launcher\LoginInterface.h:11: error: after previous specification in `LoginInterface::LoginInterface(QWidget*, Qt::WindowFlags)'
To copy to clipboard, switch view to plain text mode
Bookmarks