Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
fcd20a2e
Commit
fcd20a2e
authored
Apr 30, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port++
parent
15e37364
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
30 deletions
+30
-30
blogilo/src/mainwindow.cpp
blogilo/src/mainwindow.cpp
+8
-8
blogilo/src/poststabwidget.cpp
blogilo/src/poststabwidget.cpp
+2
-2
blogilo/src/toolbox.cpp
blogilo/src/toolbox.cpp
+6
-6
importwizard/importwizard.cpp
importwizard/importwizard.cpp
+1
-1
kleopatra/kgpgconf/CMakeLists.txt
kleopatra/kgpgconf/CMakeLists.txt
+4
-4
libkdepim/addressline/addresseelineedit.cpp
libkdepim/addressline/addresseelineedit.cpp
+9
-9
No files found.
blogilo/src/mainwindow.cpp
View file @
fcd20a2e
...
...
@@ -58,7 +58,7 @@
#include <KToggleAction>
#include <kactioncollection.h>
#include <KActionMenu>
#include <
K
Action>
#include <
Q
Action>
#include <kconfigdialog.h>
#include <qdebug.h>
#include <kmessagebox.h>
...
...
@@ -66,7 +66,7 @@
#include <KSelectAction>
#include <kimagefilepreview.h>
#include <KToolInvocation>
#include <
K
Menu>
#include <
Q
Menu>
#include <QDockWidget>
#include <QProgressBar>
...
...
@@ -211,24 +211,24 @@ void MainWindow::setupActions()
KStandardAction
::
preferences
(
this
,
SLOT
(
optionsPreferences
()),
actionCollection
()
);
// custom menu and menu item
K
Action
*
actNewPost
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"document-new"
)
),
i18n
(
"New Post"
),
this
);
Q
Action
*
actNewPost
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"document-new"
)
),
i18n
(
"New Post"
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"new_post"
),
actNewPost
);
actNewPost
->
setShortcut
(
Qt
::
CTRL
+
Qt
::
Key_N
);
connect
(
actNewPost
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotCreateNewPost
())
);
K
Action
*
actAddBlog
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"list-add"
)
),
i18n
(
"Add Blog..."
),
this
);
Q
Action
*
actAddBlog
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"list-add"
)
),
i18n
(
"Add Blog..."
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"add_blog"
),
actAddBlog
);
connect
(
actAddBlog
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
addBlog
())
);
K
Action
*
actPublish
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"arrow-up"
)
),
i18n
(
"Submit..."
),
this
);
Q
Action
*
actPublish
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"arrow-up"
)
),
i18n
(
"Submit..."
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"publish_post"
),
actPublish
);
connect
(
actPublish
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotPublishPost
())
);
K
Action
*
actUpload
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"upload-media"
)
),
i18n
(
"Upload Media..."
),
this
);
Q
Action
*
actUpload
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"upload-media"
)
),
i18n
(
"Upload Media..."
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"upload_media"
),
actUpload
);
connect
(
actUpload
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
uploadMediaObject
())
);
K
Action
*
actSaveLocally
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"document-save"
)
),
i18n
(
"Save Locally"
),
this
);
Q
Action
*
actSaveLocally
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"document-save"
)
),
i18n
(
"Save Locally"
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"save_locally"
),
actSaveLocally
);
actSaveLocally
->
setShortcut
(
Qt
::
CTRL
+
Qt
::
Key_S
);
connect
(
actSaveLocally
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotSavePostLocally
())
);
...
...
@@ -244,7 +244,7 @@ void MainWindow::setupActions()
blogs
=
new
KSelectAction
(
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"blogs_list"
),
blogs
);
K
Action
*
actOpenBlog
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"applications-internet"
)),
i18n
(
"Open in browser"
),
this
);
Q
Action
*
actOpenBlog
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"applications-internet"
)),
i18n
(
"Open in browser"
),
this
);
actionCollection
()
->
addAction
(
QLatin1String
(
"open_blog_in_browser"
),
actOpenBlog
);
actOpenBlog
->
setToolTip
(
i18n
(
"Open current blog in browser"
));
connect
(
actOpenBlog
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotOpenCurrentBlogInBrowser
())
);
...
...
blogilo/src/poststabwidget.cpp
View file @
fcd20a2e
...
...
@@ -19,7 +19,7 @@
#include <KLocale>
#include <QIcon>
#include <
K
Menu>
#include <
Q
Menu>
#include <QToolButton>
#include <QTabBar>
...
...
@@ -72,7 +72,7 @@ void PostsTabWidget::slotTabContextMenuRequest( const QPoint &pos )
if
(
indexBar
==
-
1
)
return
;
K
Menu
menu
(
this
);
Q
Menu
menu
(
this
);
QAction
*
closeTab
=
menu
.
addAction
(
i18nc
(
"@action:inmenu"
,
"Close Tab"
)
);
closeTab
->
setIcon
(
QIcon
::
fromTheme
(
QLatin1String
(
"tab-close"
)
)
);
...
...
blogilo/src/toolbox.cpp
View file @
fcd20a2e
...
...
@@ -34,9 +34,9 @@
#include "catcheckbox.h"
#include "settings.h"
#include <
K
Menu>
#include <
Q
Menu>
#include <QIcon>
#include <
K
Action>
#include <
Q
Action>
#include <KToolInvocation>
#include <QClipboard>
#include <QTimer>
...
...
@@ -492,14 +492,14 @@ void Toolbox::requestEntriesListContextMenu( const QPoint & pos )
if
(
lstEntriesList
->
selectedItems
().
isEmpty
()
)
return
;
Q_UNUSED
(
pos
);
K
Menu
*
entriesContextMenu
=
new
K
Menu
;
K
Action
*
actEntriesOpenInBrowser
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"applications-internet"
)),
Q
Menu
*
entriesContextMenu
=
new
Q
Menu
;
Q
Action
*
actEntriesOpenInBrowser
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"applications-internet"
)),
i18n
(
"Open in browser"
),
entriesContextMenu
);
connect
(
actEntriesOpenInBrowser
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
openPostInBrowser
())
);
K
Action
*
actEntriesCopyUrl
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"edit-copy"
)),
Q
Action
*
actEntriesCopyUrl
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"edit-copy"
)),
i18n
(
"Copy URL"
),
entriesContextMenu
);
connect
(
actEntriesCopyUrl
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
slotEntriesCopyUrl
())
);
K
Action
*
actEntriesCopyTitle
=
new
K
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"edit-copy"
)),
Q
Action
*
actEntriesCopyTitle
=
new
Q
Action
(
QIcon
::
fromTheme
(
QLatin1String
(
"edit-copy"
)),
i18n
(
"Copy title"
),
entriesContextMenu
);
connect
(
actEntriesCopyTitle
,
SIGNAL
(
triggered
(
bool
)),
this
,
SLOT
(
copyPostTitle
())
);
entriesContextMenu
->
addAction
(
actEntriesOpenInBrowser
);
...
...
importwizard/importwizard.cpp
View file @
fcd20a2e
...
...
@@ -47,7 +47,7 @@
#include <qdebug.h>
#include <KMessageBox>
#include <KHelpMenu>
#include <
K
Menu>
#include <
Q
Menu>
#include <AkonadiCore/control.h>
#include <mailcommon/kernel/mailkernel.h>
...
...
kleopatra/kgpgconf/CMakeLists.txt
View file @
fcd20a2e
...
...
@@ -3,7 +3,7 @@ project(kgpgconf)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/libkleo/backends/qgpgme
)
add_definitions
(
-D_ASSUAN_ONLY_GPG_ERRORS -DKDE_DEFAULT_DEBUG_AREA=5154
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
KDE4_ENABLE_EXCEPTIONS
}
"
)
kde_enable_exceptions
(
)
set
(
_kgpgconf_SRCS
configreader.cpp
...
...
@@ -14,13 +14,13 @@ set(_kgpgconf_SRCS
mainwindow.cpp
)
kde4_add_ui_files
(
_kgpgconf_SRCS mainwidget.ui
)
qt5_wrap_ui
(
_kgpgconf_SRCS mainwidget.ui
)
# todo: more appropriate icon?
kde4_add_app_icon
(
_kgpgconf_SRCS
"
${
KDE4_ICON_DIR
}
/oxygen/*/apps/preferences-desktop-cryptography.png"
)
kde4_
add_executable
(
kgpgconf
${
_kgpgconf_SRCS
}
)
add_executable
(
kgpgconf
${
_kgpgconf_SRCS
}
)
target_link_libraries
(
kgpgconf
${
QGPGME_LIBRARIES
}
${
KDE4_KDEUI_LIBS
}
)
target_link_libraries
(
kgpgconf
${
QGPGME_LIBRARIES
}
Qt5::Core KF5::KDELibs4Support
)
install
(
TARGETS kgpgconf
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
libkdepim/addressline/addresseelineedit.cpp
View file @
fcd20a2e
...
...
@@ -1210,17 +1210,17 @@ void AddresseeLineEdit::dropEvent( QDropEvent *event )
return
;
}
}
else
{
//QT5
#if 0
// Let's see if this drop contains a comma separated list of emails
const QString dropData = QString::fromUtf8( event->encodedData( "text/plain" ) );
const QStringList addrs = KPIMUtils::splitAddressList( dropData );
if ( !addrs.isEmpty() ) {
setText( KPIMUtils::normalizeAddressesAndDecodeIdn( dropData ) );
setModified( true );
return;
const
QMimeData
*
mimeData
=
event
->
mimeData
();
if
(
mimeData
->
hasText
()
)
{
const
QString
dropData
=
mimeData
->
text
();
const
QStringList
addrs
=
KPIMUtils
::
splitAddressList
(
dropData
);
if
(
!
addrs
.
isEmpty
()
)
{
setText
(
KPIMUtils
::
normalizeAddressesAndDecodeIdn
(
dropData
)
);
setModified
(
true
);
return
;
}
}
#endif
}
}
...
...
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