Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
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
Incidents
Environments
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
Unmaintained
KDE Pim
Commits
11d7e0f7
Commit
11d7e0f7
authored
Feb 06, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return error
parent
a03aa863
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
blogilo/src/mainwindow.cpp
blogilo/src/mainwindow.cpp
+6
-0
blogilo/src/mainwindow.h
blogilo/src/mainwindow.h
+1
-0
No files found.
blogilo/src/mainwindow.cpp
View file @
11d7e0f7
...
...
@@ -148,6 +148,7 @@ void MainWindow::initStorageService()
connect
(
mStorageManager
,
SIGNAL
(
uploadFileDone
(
QString
,
QString
)),
this
,
SLOT
(
slotUploadFileDone
(
QString
,
QString
)));
connect
(
mStorageManager
,
SIGNAL
(
shareLinkDone
(
QString
,
QString
)),
this
,
SLOT
(
slotUploadFileDone
(
QString
,
QString
)));
connect
(
mStorageManager
,
SIGNAL
(
uploadFileFailed
(
QString
,
QString
)),
this
,
SLOT
(
slotUploadFileFailed
(
QString
,
QString
)));
connect
(
mStorageManager
,
SIGNAL
(
actionFailed
(
QString
,
QString
)),
this
,
SLOT
(
slotActionFailed
(
QString
,
QString
)));
}
void
MainWindow
::
slotUploadFileDone
(
const
QString
&
serviceName
,
const
QString
&
link
)
...
...
@@ -163,6 +164,11 @@ void MainWindow::slotUploadFileFailed(const QString &serviceName, const QString
KMessageBox
::
error
(
this
,
i18n
(
"Error during upload."
),
i18n
(
"Upload File"
));
}
void
MainWindow
::
slotActionFailed
(
const
QString
&
serviceName
,
const
QString
&
error
)
{
KMessageBox
::
error
(
this
,
i18n
(
"%1 return an error '%2'"
,
serviceName
,
error
),
i18n
(
"Error"
));
}
void
MainWindow
::
slotCloseTabClicked
()
{
const
int
currentIndex
=
tabPosts
->
currentIndex
();
...
...
blogilo/src/mainwindow.h
View file @
11d7e0f7
...
...
@@ -108,6 +108,7 @@ private slots:
void
slotUploadFileDone
(
const
QString
&
serviceName
,
const
QString
&
filename
);
void
slotUploadFileFailed
(
const
QString
&
serviceName
,
const
QString
&
filename
);
void
slotActionFailed
(
const
QString
&
serviceName
,
const
QString
&
filename
);
protected:
void
keyPressEvent
(
QKeyEvent
*
event
);
...
...
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