Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6ab2d27e
Commit
6ab2d27e
authored
Dec 02, 2008
by
mae
Browse files
Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline
parents
d9686f5b
ceb73b72
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
doc/example/textfinder/main.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,13 +26,15 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include <QtGui/QApplication>
#include "textfinder.h"
#include <QtGui/QApplication>
int
main
(
int
argc
,
char
*
argv
[])
{
Q_INIT_RESOURCE
(
textfinder
);
...
...
doc/example/textfinder/textfinder.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,14 +26,16 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include <QtGui/QMessageBox>
#include "textfinder.h"
#include <QtCore/QFile>
#include <QtCore/QTextStream>
#include
"textfinder.h"
#include
<QtGui/QMessageBox>
TextFinder
::
TextFinder
(
QWidget
*
parent
,
Qt
::
WFlags
flags
)
:
QWidget
(
parent
,
flags
)
...
...
doc/example/textfinder/textfinder.h
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,16 +26,18 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef TEXTFINDER_H
#define TEXTFINDER_H
#include <QtGui/QWidget>
#include "ui_textfinder.h"
#include <QtGui/QWidget>
class
QPushButton
;
class
QTextEdit
;
class
QLineEdit
;
...
...
doc/qtcreator.qdoc
View file @
6ab2d27e
...
...
@@ -788,31 +788,31 @@
\table
\row
\i \bold{Note:}
\i Gdb, and therefore Qt Creator's debugger works for optimized builds
on Linux and Mac OS X. However, optimization may lead to re-ordering of
instructions or sometimes even complete removal of some local variables.
In this case, the \gui{Locals and Watchers} view may show unexpected data.
\i Gdb, and therefore Qt Creator's debugger works for optimized
builds on Linux and Mac OS X. However, optimization may lead
to re-ordering of instructions or sometimes even complete
removal of some local variables. In this case, the
\gui{Locals and Watchers} view may show unexpected data.
\i The debug information provided by gcc does not include enough
information about the time when a variable is initialized.
Qt Creator therefore can not tell whether the contents of a
local variable contains "real data", or "initial noise". If a
QObject appears uninitialized, its value will be reported as
"out of scope". However, not all uninitialized objects can be
recognized as such.
\endtable
\note
\bold{Note:} The debug information provided by gcc does not include
enough information about the time at which a variable is initialized.
Qt Creator therefore can not tell whether the contents of a local
variable contains "real data", or "initial noise". If an QObject
appears uninitialized, its value will be reported as "out of scope".
Not all uninitialized objects can be recognized as such, though.
The \gui{Locals and Watchers View} also gives accesst to the most powerful
feature of the Qt Creator Debugger: The comprehensive display of data
of objects of some of Qt's basic classes.
To start using that feature, select \gui{Debug} and \gui{Use Custom
Display for Qt Objects}. The \gui{Locals and Watchers View} will
be re-organized to give a more high-level view of the objects
in question. So instead of displaying a pointer to some private
data structure in case of QObject, a list of children, signals
and slots will be shown.
The \gui{Locals and Watchers} view also provides access to the most
powerful feature of the debugger: comprehensive display of data belonging
to Qt's basic objects. To enable this feature, select \gui{Use Custom
Display for Qt Objects} from the \gui Debug menu.The
\gui{Locals and Watchers} view will be re-organized to provide a high-level
view of the objects. For example, in case of QObject, instead of displaying
a pointer to some private data structure, you will see a list of children,
signals and slots.
Similarily, instead of showing a bunch of pointers and ints,
a QHash or QMap will display its contents in an orderly fashion,
...
...
installer/installer.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,9 +26,9 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
// This file contains the QtCreator-specific part of the installer.
...
...
installer/qinstaller.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,9 +26,9 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "qinstaller.h"
...
...
installer/qinstaller.h
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,9 +26,9 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef QINSTALLER_H
...
...
installer/qinstallergui.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,9 +26,9 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "qinstallergui.h"
...
...
installer/qinstallergui.h
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,9 +26,9 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef QINSTALLERGUI_H
...
...
shared/cpaster/cgi.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,17 +26,18 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "cgi.h"
#include <QByteArray>
// -------------------------------------------------------------------------------------------------
const
char
*
cgi_chars
=
"0123456789abcdef"
;
// RFC 1738 suggests lower-case to be optimal
QString
CGI
::
encodeURL
(
const
QString
&
rawText
)
{
QByteArray
utf
=
rawText
.
toUtf8
();
...
...
@@ -424,5 +425,3 @@ QString CGI::encodeHTML(const QString &rawText, int conversionFlags)
return
enc
;
}
// -------------------------------------------------------------------------------------------------
shared/cpaster/cgi.h
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,12 +26,14 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef _CGI_H_
#define _CGI_H_
#ifndef CGI_H
#define CGI_H
#include <QString>
class
CGI
...
...
@@ -54,5 +56,4 @@ private:
inline
QChar
hexToChar
(
const
QString
&
hx
);
};
#endif // _CGI_H_
#endif // CGI_H
shared/cpaster/fetcher.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,10 +26,11 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "fetcher.h"
#include "cgi.h"
...
...
@@ -44,7 +45,7 @@ Fetcher::Fetcher(const QString &host)
m_status
=
0
;
m_hadError
=
false
;
connect
(
this
,
SIGNAL
(
requestFinished
(
int
,
bool
)),
SLOT
(
gotRequestFinished
(
int
,
bool
)));
connect
(
this
,
SIGNAL
(
readyRead
(
const
QHttpResponseHeader
&
)),
SLOT
(
gotReadyRead
(
const
QHttpResponseHeader
&
)));
connect
(
this
,
SIGNAL
(
readyRead
(
QHttpResponseHeader
)),
SLOT
(
gotReadyRead
(
QHttpResponseHeader
)));
}
int
Fetcher
::
fetch
(
const
QString
&
url
)
...
...
shared/cpaster/fetcher.h
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,16 +26,16 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef FETCHER_H
#define FETCHER_H
#include <QHttp>
#include <QHttpResponseHeader>
#include <QString>
class
Fetcher
:
public
QHttp
...
...
shared/cpaster/poster.cpp
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** agreement between you and Nokia.
**
** GNU General Public License Usage
**
** Alternatively, this file may be used under the terms of the GNU General
** Public License versions 2.0 or 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the packaging
...
...
@@ -26,10 +26,11 @@
** http://www.gnu.org/copyleft/gpl.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception
version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
** rights. These rights are described in the Nokia Qt GPL Exception
**
version
1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "poster.h"
#include "cgi.h"
...
...
@@ -43,7 +44,7 @@ Poster::Poster(const QString &host)
m_status
=
0
;
m_hadError
=
false
;
connect
(
this
,
SIGNAL
(
requestFinished
(
int
,
bool
)),
SLOT
(
gotRequestFinished
(
int
,
bool
)));
connect
(
this
,
SIGNAL
(
responseHeaderReceived
(
const
QHttpResponseHeader
&
)),
SLOT
(
gotResponseHeaderReceived
(
const
QHttpResponseHeader
&
)));
connect
(
this
,
SIGNAL
(
responseHeaderReceived
(
QHttpResponseHeader
)),
SLOT
(
gotResponseHeaderReceived
(
QHttpResponseHeader
)));
}
void
Poster
::
post
(
const
QString
&
description
,
const
QString
&
comment
,
...
...
shared/cpaster/poster.h
View file @
6ab2d27e
...
...
@@ -6,16 +6,16 @@
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accordance with the Qt Beta Version
** License Agreement, Agreement version 2.2 provided with the Software or,
** alternatively, in accordance with the terms contained in a written
** agreement between you and Nokia.