From kde-commits Sat Jul 23 19:50:00 2011 From: "Dr.Robert Marmorstein" Date: Sat, 23 Jul 2011 19:50:00 +0000 To: kde-commits Subject: [koffice] libs/widgets: Revert KCombobox change. Message-Id: <20110723195000.2681DA60A6 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131145065024486 Git commit 5192212e862f235925761da5862aca23dd379b4c by Dr. Robert Marmorstein. Committed on 23/07/2011 at 21:49. Pushed by robertm into branch 'master'. Revert KCombobox change. This introduced an infinite recursion, since the KComboBox emits an event caught by the very function that emits it! M +3 -3 libs/widgets/KoZoomInput.cpp http://commits.kde.org/koffice/5192212e862f235925761da5862aca23dd379b4c diff --git a/libs/widgets/KoZoomInput.cpp b/libs/widgets/KoZoomInput.cpp index fc6ea75..d2a9157 100644 --- a/libs/widgets/KoZoomInput.cpp +++ b/libs/widgets/KoZoomInput.cpp @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include @@ -36,7 +36,7 @@ class KoZoomInput::Private { public: - KComboBox* combo; + QComboBox* combo; QLabel* label; bool inside; }; @@ -69,7 +69,7 @@ KoZoomInput::KoZoomInput(QWidget* parent) icon->setPixmap(pixmap); layout->addWidget(icon); addWidget(first); - d->combo = new KComboBox(this); + d->combo = new QComboBox(this); d->combo->setMaxVisibleItems(15); d->combo->setEditable(true); d->combo->installEventFilter(this);