Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
c59ba462
Commit
c59ba462
authored
Jun 25, 2013
by
Eike Ziller
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/2.7' into 2.8
parents
728fe7d7
1477729a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 deletions
+28
-8
src/plugins/android/androidrunner.cpp
src/plugins/android/androidrunner.cpp
+7
-2
src/plugins/cpaster/kdepasteprotocol.cpp
src/plugins/cpaster/kdepasteprotocol.cpp
+2
-1
src/plugins/cpaster/pastebindotcomprotocol.cpp
src/plugins/cpaster/pastebindotcomprotocol.cpp
+17
-3
src/plugins/qmldesigner/componentsplugin/components.metainfo
src/plugins/qmldesigner/componentsplugin/components.metainfo
+2
-2
No files found.
src/plugins/android/androidrunner.cpp
View file @
c59ba462
...
...
@@ -101,6 +101,8 @@ AndroidRunner::AndroidRunner(QObject *parent,
QByteArray
which
=
psProc
.
readAll
();
m_isBusyBox
=
which
.
startsWith
(
"busybox"
);
m_checkPIDTimer
.
setInterval
(
1000
);
connect
(
&
m_adbLogcatProcess
,
SIGNAL
(
readyReadStandardOutput
()),
SLOT
(
logcatReadStandardOutput
()));
connect
(
&
m_adbLogcatProcess
,
SIGNAL
(
readyReadStandardError
()),
SLOT
(
logcatReadStandardError
()));
connect
(
&
m_checkPIDTimer
,
SIGNAL
(
timeout
()),
SLOT
(
checkPID
()));
...
...
@@ -154,8 +156,10 @@ void AndroidRunner::checkPID()
return
;
QByteArray
psOut
=
runPs
();
m_processPID
=
extractPid
(
m_packageName
,
psOut
);
if
(
m_processPID
==
-
1
)
if
(
m_processPID
==
-
1
)
{
m_checkPIDTimer
.
stop
();
emit
remoteProcessFinished
(
tr
(
"
\n\n
'%1' died."
).
arg
(
m_packageName
));
}
}
void
AndroidRunner
::
forceStop
()
...
...
@@ -186,7 +190,6 @@ void AndroidRunner::start()
{
m_adbLogcatProcess
.
start
(
m_adb
,
selector
()
<<
_
(
"logcat"
));
m_wasStarted
=
false
;
m_checkPIDTimer
.
start
(
1000
);
// check if the application is alive every 1 seconds
QtConcurrent
::
run
(
this
,
&
AndroidRunner
::
asyncStart
);
}
...
...
@@ -300,6 +303,8 @@ void AndroidRunner::asyncStart()
return
;
}
QMetaObject
::
invokeMethod
(
&
m_checkPIDTimer
,
"start"
);
m_wasStarted
=
true
;
if
(
m_useCppDebugger
)
{
// This will be funneled to the engine to actually start and attach
...
...
src/plugins/cpaster/kdepasteprotocol.cpp
View file @
c59ba462
...
...
@@ -195,7 +195,8 @@ void KdePasteProtocol::list()
{
QTC_ASSERT
(
!
m_listReply
,
return
);
QString
url
=
QLatin1String
(
hostUrlC
)
+
QLatin1String
(
"api/xml/all"
);
// Trailing slash is important to prevent redirection.
QString
url
=
QLatin1String
(
hostUrlC
)
+
QLatin1String
(
"api/xml/all/"
);
m_listReply
=
httpGet
(
url
);
connect
(
m_listReply
,
SIGNAL
(
finished
()),
this
,
SLOT
(
listFinished
()));
if
(
debug
)
...
...
src/plugins/cpaster/pastebindotcomprotocol.cpp
View file @
c59ba462
...
...
@@ -317,12 +317,21 @@ static inline ParseState nextClosingState(ParseState current, const QStringRef &
return
ParseError
;
}
static
inline
QStringList
parseLists
(
QIODevice
*
io
)
static
inline
QStringList
parseLists
(
QIODevice
*
io
,
QString
*
errorMessage
)
{
enum
{
maxEntries
=
200
};
// Limit the archive, which can grow quite large.
QStringList
rc
;
QXmlStreamReader
reader
(
io
);
// Read answer and delete part up to the main table since the input form has
// parts that can no longer be parsed using XML parsers (<input type="text" x-webkit-speech />)
QByteArray
data
=
io
->
readAll
();
const
int
tablePos
=
data
.
indexOf
(
"<table class=
\"
maintable
\"
cellspacing=
\"
0
\"
>"
);
if
(
tablePos
<
0
)
{
*
errorMessage
=
QLatin1String
(
"Could not locate beginning of table."
);
return
rc
;
}
data
.
remove
(
0
,
tablePos
);
QXmlStreamReader
reader
(
data
);
ParseState
state
=
OutSideTable
;
int
tableRow
=
0
;
int
tableColumn
=
0
;
...
...
@@ -410,6 +419,8 @@ static inline QStringList parseLists(QIODevice *io)
break
;
}
// switch reader state
}
if
(
reader
.
hasError
())
*
errorMessage
=
QString
::
fromLatin1
(
"Error at line %1:%2"
).
arg
(
reader
.
lineNumber
()).
arg
(
reader
.
errorString
());
return
rc
;
}
...
...
@@ -420,7 +431,10 @@ void PasteBinDotComProtocol::listFinished()
if
(
debug
)
qDebug
()
<<
"listFinished: error"
<<
m_listReply
->
errorString
();
}
else
{
QStringList
list
=
parseLists
(
m_listReply
);
QString
errorMessage
;
const
QStringList
list
=
parseLists
(
m_listReply
,
&
errorMessage
);
if
(
list
.
isEmpty
())
qWarning
().
nospace
()
<<
"Failed to read list from "
<<
PASTEBIN_BASE
<<
':'
<<
errorMessage
;
emit
listDone
(
name
(),
list
);
if
(
debug
)
qDebug
()
<<
list
;
...
...
src/plugins/qmldesigner/componentsplugin/components.metainfo
View file @
c59ba462
...
...
@@ -155,12 +155,12 @@ MetaInfo {
Type {
name: "QtQuick.Controls.Slider"
icon: ":/componentsplugin/images/slider
h
16.png"
icon: ":/componentsplugin/images/slider16.png"
ItemLibraryEntry {
name: "Slider (Horizontal)"
category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/slider
h
.png"
libraryIcon: ":/componentsplugin/images/slider.png"
version: "1.0"
requiredImport: "QtQuick.Controls"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment