public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Johannes Huber" <johu@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/plasma-workspace/files/
Date: Wed, 28 May 2014 21:20:17 +0000 (UTC)	[thread overview]
Message-ID: <1401312004.f65d9475ea526c2ea3ad8a8071a247c1d3c54bc8.johu@gentoo> (raw)

commit:     f65d9475ea526c2ea3ad8a8071a247c1d3c54bc8
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Wed May 28 21:20:04 2014 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed May 28 21:20:04 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=f65d9475

[kde-base/plasma-workspace] Update prison patch

https://git.reviewboard.kde.org/r/118381/

Package-Manager: portage-2.2.10

---
 ...plasma-workspace-9999-cmake-enable-prison.patch | 51 +++++++++++++++-------
 1 file changed, 35 insertions(+), 16 deletions(-)

diff --git a/kde-base/plasma-workspace/files/plasma-workspace-9999-cmake-enable-prison.patch b/kde-base/plasma-workspace/files/plasma-workspace-9999-cmake-enable-prison.patch
index 48924a4..23d6e6f 100644
--- a/kde-base/plasma-workspace/files/plasma-workspace-9999-cmake-enable-prison.patch
+++ b/kde-base/plasma-workspace/files/plasma-workspace-9999-cmake-enable-prison.patch
@@ -1,14 +1,5 @@
-From e6e1db527e636649634db97846abd09862861134 Mon Sep 17 00:00:00 2001
-From: Johannes Huber <johu@gentoo.org>
-Date: Sun, 25 May 2014 17:29:16 +0200
-Subject: [PATCH] [klipper] Re-enable prison
-
----
- klipper/CMakeLists.txt | 24 ++++++++++++------------
- 1 file changed, 12 insertions(+), 12 deletions(-)
-
 diff --git a/klipper/CMakeLists.txt b/klipper/CMakeLists.txt
-index c700f9e..7c66022 100644
+index 7a57b30b8b59a77c3d0702095dd72bb275d22e57..a46ac2def2faed4b0452c99cca6323da0adba348 100644
 --- a/klipper/CMakeLists.txt
 +++ b/klipper/CMakeLists.txt
 @@ -16,15 +16,15 @@ set(libklipper_common_SRCS
@@ -24,19 +15,19 @@ index c700f9e..7c66022 100644
 -# if (PRISON_FOUND)
 -#     include_directories(${PRISON_INCLUDE_DIR})
 -# endif ()
-+find_package(Prison QUIET CONFIG)
++find_package(Prison "1.2.0" QUIET CONFIG)
 +set_package_properties(Prison PROPERTIES DESCRIPTION "Prison library"
 +                       URL "http://projects.kde.org/prison"
 +                       TYPE OPTIONAL
 +                       PURPOSE "Needed to create mobile barcodes from clipboard data"
 +                      )
 +if (PRISON_FOUND)
-+     include_directories(${PRISON_INCLUDE_DIR})
++    include_directories(${PRISON_INCLUDE_DIR})
 +endif ()
  
  set(HAVE_PRISON ${PRISON_FOUND})
  configure_file(config-klipper.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-klipper.h )
-@@ -43,9 +43,9 @@ target_link_libraries(kdeinit_klipper Qt5::X11Extras KF5::GlobalAccel KF5::Windo
+@@ -52,9 +52,9 @@ target_link_libraries(kdeinit_klipper
  if (X11_Xfixes_FOUND)
    target_link_libraries(kdeinit_klipper ${X11_Xfixes_LIB})
  endif ()
@@ -49,6 +40,34 @@ index c700f9e..7c66022 100644
  
  install(TARGETS kdeinit_klipper ${INSTALL_TARGETS_DEFAULT_ARGS})
  install(TARGETS klipper         ${INSTALL_TARGETS_DEFAULT_ARGS})
--- 
-1.9.3
-
+diff --git a/klipper/klipper.cpp b/klipper/klipper.cpp
+index 1ce578afb078b3b4e791e780975802082559bdf4..8847af324ff0c0c8e07d7e69ca473945cf001772 100644
+--- a/klipper/klipper.cpp
++++ b/klipper/klipper.cpp
+@@ -887,10 +887,12 @@ void Klipper::slotShowBarcode()
+     using namespace prison;
+     const HistoryStringItem* item = dynamic_cast<const HistoryStringItem*>(m_history->first());
+ 
+-    KDialog dlg;
++    QDialog dlg;
+     dlg.setModal( true );
+-    dlg.setCaption( i18n("Mobile Barcode") );
+-    dlg.setButtons( KDialog::Ok );
++    dlg.setWindowTitle( i18n("Mobile Barcode") );
++    QDialogButtonBox *buttons = new QDialogButtonBox(QDialogButtonBox::Ok, &dlg);
++    buttons->button(QDialogButtonBox::Ok)->setShortcut(Qt::CTRL | Qt::Key_Return);
++    connect(buttons, &QDialogButtonBox::accepted, &dlg, &QDialog::accept);
+ 
+     QWidget* mw = new QWidget(&dlg);
+     QHBoxLayout* layout = new QHBoxLayout(mw);
+@@ -907,7 +909,9 @@ void Klipper::slotShowBarcode()
+     layout->addWidget(datamatrix);
+ 
+     mw->setFocus();
+-    dlg.setMainWidget( mw );
++    QVBoxLayout *vBox = new QVBoxLayout(&dlg);
++    vBox->addWidget(mw);
++    vBox->addWidget(buttons);
+     dlg.adjustSize();
+ 
+     dlg.exec();


             reply	other threads:[~2014-05-28 21:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 21:20 Johannes Huber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-10-25 16:32 [gentoo-commits] proj/kde:master commit in: kde-base/plasma-workspace/files/ Michael Palimaka
2014-05-26 17:43 Johannes Huber
2014-05-03 20:39 Johannes Huber
2014-04-10 21:07 Johannes Huber
2011-03-28  1:44 Theo Chatzimichos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1401312004.f65d9475ea526c2ea3ad8a8071a247c1d3c54bc8.johu@gentoo \
    --to=johu@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox