OSDN Git Service

various cleanups
authorIvailo Monev <xakepa10@gmail.com>
Sun, 26 Jun 2016 10:32:24 +0000 (10:32 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 26 Jun 2016 10:32:24 +0000 (10:32 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
CMakeLists.txt
mkspecs/tests/tests.cmake
src/gui/dialogs/qmessagebox.cpp
src/gui/dialogs/qmessagebox.h
src/gui/itemviews/qtreewidget.cpp
src/gui/itemviews/qtreewidget.h
src/gui/kernel/qevent.cpp
src/gui/kernel/qevent.h
src/help/qhelpengine.cpp
src/help/qhelpengine_p.h
src/help/qhelpenginecore.cpp

index 5f5c8ab..31cfdf1 100644 (file)
@@ -20,6 +20,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/staticlib")
 
 include(CheckIncludeFile)
+include(CheckTypeSize)
 include(FeatureSummary)
 include(KatieMacros)
 include(KatieBuildMacros)
@@ -210,6 +211,9 @@ else()
     add_definitions(-DTIME_WITH_SYS_TIME=0)
 endif()
 
+# used in qconfig.h
+check_type_size(size_t QT_POINTER_SIZE)
+
 configure_file(
     ${CMAKE_SOURCE_DIR}/src/core/global/qconfig.h.cmake
     ${CMAKE_BINARY_DIR}/include/QtCore/qconfig.h
index bed79b2..4b43ccb 100644 (file)
@@ -78,5 +78,4 @@ endmacro()
 
 katie_misc_test(stl STL)
 
-include(CheckTypeSize)
-check_type_size(size_t QT_POINTER_SIZE)
+# TODO: check if data relocations should be disabled before any target additions and define Q_NO_DATA_RELOCATION
index af63084..532061a 100644 (file)
@@ -1736,15 +1736,6 @@ void QMessageBox::aboutQt(QWidget *parent, const QString &title)
 #endif
 }
 
-/*!
-    \internal
-*/
-QSize QMessageBox::sizeHint() const
-{
-    // ### Qt 5: remove
-    return QDialog::sizeHint();
-}
-
 /////////////////////////////////////////////////////////////////////////////////////////
 // Source and binary compatibility routines for 4.0 and 4.1
 
index 4780378..550fcb6 100644 (file)
@@ -198,8 +198,6 @@ public:
     static void about(QWidget *parent, const QString &title, const QString &text);
     static void aboutQt(QWidget *parent, const QString &title = QString());
 
-    QSize sizeHint() const;
-
     QString informativeText() const;
     void setInformativeText(const QString &text);
 
index 08cf909..e23a6cb 100644 (file)
@@ -2888,26 +2888,6 @@ void QTreeWidget::sortItems(int column, Qt::SortOrder order)
 }
 
 /*!
-    \internal
-
-    ### Qt 5: remove
-*/
-void QTreeWidget::setSortingEnabled(bool enable)
-{
-    QTreeView::setSortingEnabled(enable);
-}
-
-/*!
-    \internal
-
-    ### Qt 5: remove
-*/
-bool QTreeWidget::isSortingEnabled() const
-{
-    return QTreeView::isSortingEnabled();
-}
-
-/*!
   Starts editing the \a item in the given \a column if it is editable.
 */
 
index 143e34a..f315450 100644 (file)
@@ -299,8 +299,6 @@ public:
 
     int sortColumn() const;
     void sortItems(int column, Qt::SortOrder order);
-    void setSortingEnabled(bool enable);
-    bool isSortingEnabled() const;
 
     void editItem(QTreeWidgetItem *item, int column = 0);
     void openPersistentEditor(QTreeWidgetItem *item, int column = 0);
index 522f200..8a25b25 100644 (file)
@@ -905,15 +905,6 @@ QFocusEvent::~QFocusEvent()
 {
 }
 
-// ### Qt 5: remove
-/*!
-    \internal
- */
-Qt::FocusReason QFocusEvent::reason()
-{
-    return m_reason;
-}
-
 /*!
     Returns the reason for this focus event.
  */
@@ -3389,13 +3380,6 @@ QClipboardEvent::~QClipboardEvent()
     Returns the key sequence that triggered the event.
 */
 
-// ### Qt 5: remove
-/*!
-    \fn const QKeySequence &QShortcutEvent::key()
-
-    \internal
-*/
-
 /*!
     \fn int QShortcutEvent::shortcutId() const
 
@@ -3405,14 +3389,6 @@ QClipboardEvent::~QClipboardEvent()
     \sa QShortcut::id()
 */
 
-// ### Qt 5: remove
-/*!
-    \fn int QShortcutEvent::shortcutId()
-    \overload
-
-    \internal
-*/
-
 /*!
     \fn bool QShortcutEvent::isAmbiguous() const
 
@@ -3422,13 +3398,6 @@ QClipboardEvent::~QClipboardEvent()
     \sa QShortcut::activatedAmbiguously()
 */
 
-// ### Qt 5: remove
-/*!
-    \fn bool QShortcutEvent::isAmbiguous()
-
-    \internal
-*/
-
 /*!
     \class QWindowStateChangeEvent
     \ingroup events
index 9f2bc22..ecfe724 100644 (file)
@@ -245,7 +245,6 @@ public:
     inline bool gotFocus() const { return type() == FocusIn; }
     inline bool lostFocus() const { return type() == FocusOut; }
 
-    Qt::FocusReason reason();
     Qt::FocusReason reason() const;
 
 private:
@@ -609,11 +608,8 @@ public:
     QShortcutEvent(const QKeySequence &key, int id, bool ambiguous = false);
     ~QShortcutEvent();
 
-    inline const QKeySequence &key() { return sequence; }
     inline const QKeySequence &key() const { return sequence; }
-    inline int shortcutId() { return sid; }
     inline int shortcutId() const { return sid; }
-    inline bool isAmbiguous() { return ambig; }
     inline bool isAmbiguous() const { return ambig; }
 protected:
     QKeySequence sequence;
index e6284fe..5124a2d 100644 (file)
@@ -52,7 +52,6 @@
 #include <QtCore/QLibrary>
 #include <QtCore/QPluginLoader>
 #include <QtGui/QApplication>
-#include <QtSql/QSqlQuery>
 
 QT_BEGIN_NAMESPACE
 
index fb864cb..d184c73 100644 (file)
@@ -60,8 +60,6 @@
 
 QT_BEGIN_NAMESPACE
 
-class QSqlQuery;
-
 class QHelpEngineCore;
 class QHelpDBReader;
 class QHelpContentModel;
index 3f2adff..edeb098 100644 (file)
@@ -51,7 +51,6 @@
 #include <QtCore/QFileInfo>
 #include <QtCore/QThread>
 #include <QtGui/QApplication>
-#include <QtSql/QSqlQuery>
 
 QT_BEGIN_NAMESPACE