TQt conversion of scintilla for Qt3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michele Calgaro 0896465ce7
qt -> tqt conversion:
4 months ago
designer qt -> tqt conversion: QTDIR -> TQTDIR QTDOC -> TQTDOC INCDIR_QT -> INCDIR_TQT LIBDIR_QT -> LIBDIR_TQT QT_INC -> TQT_INC QT_LIB -> TQT_LIB 4 months ago
doc Removed unnecessary executable flag. This relates to bug 2153. 5 months ago
example Removed unnecessary executable flag. This relates to bug 2153. 5 months ago
include Removed unnecessary executable flag. This relates to bug 2153. 5 months ago
qt qt -> tqt conversion: QTDIR -> TQTDIR QTDOC -> TQTDOC INCDIR_QT -> INCDIR_TQT LIBDIR_QT -> LIBDIR_TQT QT_INC -> TQT_INC QT_LIB -> TQT_LIB 4 months ago
src Removed unnecessary executable flag. This relates to bug 2153. 5 months ago
ChangeLog Rename obsolete tq methods to standard names 7 years ago
LICENSE Initial import of qscintilla from 2007 7 years ago
NEWS Initial import of qscintilla from 2007 7 years ago
README qt -> tqt conversion: QTDIR -> TQTDIR QTDOC -> TQTDOC INCDIR_QT -> INCDIR_TQT LIBDIR_QT -> LIBDIR_TQT QT_INC -> TQT_INC QT_LIB -> TQT_LIB 4 months ago
README.MacOS QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT conversion to align to updated admin module 5 months ago

README.MacOS

                             QScintilla on MacOS/X


All versions of Qt for MacOS/X up to an including Qt v3.3.2 have a bug which
crashes QScintilla. The following patch needs to be applied to Qt:


--- src/kernel/qt_mac.h 2004-04-21 00:15:43 -0000
+++ src/kernel/qt_mac.h 2004-04-21 00:15:43 -0000

@@ -395,22 +395,28 @@
inline QMacSavedPortInfo::~QMacSavedPortInfo()
{
if(mac_window_count) {
- if(valid_gworld)
- SetGWorld(world,handle); //always do this one first
- else
- setPaintDevice(qt_mac_safe_pdev);
- SetClip(clip);
- DisposeRgn(clip);
- SetPenState(&pen);
- RGBForeColor(&fore);
- RGBBackColor(&back);
+ bool set_state = false;
+ if(valid_gworld) {
+ set_state = IsValidPort(world);
+ if(set_state)
+ SetGWorld(world,handle); //always do this one first
+ } else {
+ setPaintDevice(qt_mac_safe_pdev);
+ }
+ if(set_state) {
+ SetClip(clip);
+ SetPenState(&pen);
+ RGBForeColor(&fore);
+ RGBBackColor(&back);
+ }
+ DisposeRgn(clip);
}
if(fi)
delete fi;
qt_mac_current_painter = painter;
#if defined(TQT_THREAD_SUPPORT)
if(qt_mac_port_mutex)
- qt_mac_port_mutex->unlock();
+ qt_mac_port_mutex->unlock();
#endif
}