diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-17 19:34:22 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-17 19:34:22 +0900 |
| commit | 2080def64c64099ea7685d903d070e028a8cb916 (patch) | |
| tree | f645ca3060a53cae9729cf3e9256da820e534e35 /src/kernel | |
| parent | 37a07263c70308f7ddef4aac747446d5ede82374 (diff) | |
| download | tqt-drop/hpux-support.tar.gz tqt-drop/hpux-support.zip | |
Remove support for HPUX, which is discontinued and does not provide a c++17 complaint compiler.drop/hpux-support
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel')
| -rw-r--r-- | src/kernel/tqapplication_x11.cpp | 32 | ||||
| -rw-r--r-- | src/kernel/tqcursor_x11.cpp | 2 | ||||
| -rw-r--r-- | src/kernel/tqt_x11_p.h | 3 | ||||
| -rw-r--r-- | src/kernel/tqthread_unix.cpp | 6 |
4 files changed, 4 insertions, 39 deletions
diff --git a/src/kernel/tqapplication_x11.cpp b/src/kernel/tqapplication_x11.cpp index e9877fe0c..eeb5e0e36 100644 --- a/src/kernel/tqapplication_x11.cpp +++ b/src/kernel/tqapplication_x11.cpp @@ -341,7 +341,7 @@ static int xsync_errorbase; static long qt_alt_mask = 0; static long qt_meta_mask = 0; // modifier mask to remove mode switch from modifiers that have alt/meta set -// this problem manifests itself on HP/UX 10.20 at least, and without it +// this problem manifests itself on some systems, and without it // modifiers do not work at all... static long qt_mode_switch_remove_mask = 0; @@ -1972,33 +1972,7 @@ void tqt_init_internal( int *argcptr, char **argv, TQPaintDevice::x_appvisual_arr[ screen ]); int i, count; - TQPaintDevice::x_appcolormap_arr[ screen ] = 0; - - if ( ! serverVendor.contains( "Hewlett-Packard" ) ) { - // on HPUX 10.20 local displays, the RGB_DEFAULT_MAP colormap - // doesn't give us correct colors. Why this happens, I have - // no clue, so we disable this for HPUX - if (XGetRGBColormaps(appDpy, - TQPaintDevice::x11AppRootWindow( screen ), - &stdcmap, &count, XA_RGB_DEFAULT_MAP)) { - i = 0; - while (i < count && - TQPaintDevice::x_appcolormap_arr[ screen ] == 0) { - if (stdcmap[i].visualid == vid) { - TQPaintDevice::x_appcolormap_arr[ screen ] = - stdcmap[i].colormap; - } - i++; - } - - XFree( (char *)stdcmap ); - } - } - - if (TQPaintDevice::x_appcolormap_arr[ screen ] == 0) { - TQPaintDevice::x_appcolormap_arr[ screen ] = - DefaultColormap(appDpy, screen); - } + TQPaintDevice::x_appcolormap_arr[ screen ] = DefaultColormap(appDpy, screen); } else { // create a custom colormap TQPaintDevice::x_appcolormap_arr[ screen ] = @@ -5255,7 +5229,7 @@ bool TQETWidget::translateKeyEventInternal( const XEvent *event, int& count, // save the modifier state, we will use the keystate uint later by passing // it to qt_x11_translateButtonState uint keystate = event->xkey.state; - // remove the modifiers where mode_switch exists... HPUX machines seem + // remove the modifiers where mode_switch exists... some machines seem // to have alt *AND* mode_switch both in Mod1Mask, which causes // XLookupString to return things like '�' (aring) for ALT-A. This // completely breaks modifiers. If we remove the modifier for Mode_switch, diff --git a/src/kernel/tqcursor_x11.cpp b/src/kernel/tqcursor_x11.cpp index 2ff9bad05..d299bdd63 100644 --- a/src/kernel/tqcursor_x11.cpp +++ b/src/kernel/tqcursor_x11.cpp @@ -83,7 +83,7 @@ TQCursorData::~TQCursorData() { Display *dpy = TQPaintDevice::x11AppDisplay(); - // Add in checking for the display too as on HP-UX + // Add in checking for the display too as // we seem to get a core dump as the cursor data is // deleted again from main() on exit... if ( hcurs && dpy ) diff --git a/src/kernel/tqt_x11_p.h b/src/kernel/tqt_x11_p.h index b21fe3732..aeb120203 100644 --- a/src/kernel/tqt_x11_p.h +++ b/src/kernel/tqt_x11_p.h @@ -194,9 +194,6 @@ typedef char *XPointer; // XmbLookupString broken on IRIX // XCreateIC broken when compiling -64 on IRIX 6.5.2 #define TQT_NO_XIM -#elif defined(Q_OS_HPUX) && defined(__LP64__) -// XCreateIC broken when compiling 64-bit ELF on HP-UX 11.0 -#define TQT_NO_XIM #endif // TQT_NO_XIM diff --git a/src/kernel/tqthread_unix.cpp b/src/kernel/tqthread_unix.cpp index 4f4ec8d79..ba744d011 100644 --- a/src/kernel/tqthread_unix.cpp +++ b/src/kernel/tqthread_unix.cpp @@ -410,12 +410,6 @@ void TQThread::start(Priority priority) d->args[0] = this; d->args[1] = d; ret = pthread_create( &d->thread_id, &attr, (TQtThreadCallback)TQThreadInstance::start, d->args ); -#if defined (Q_OS_HPUX) - if (ret == EPERM) { - pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); - ret = pthread_create(&d->thread_id, &attr, (TQtThreadCallback)TQThreadInstance::start, d->args); - } -#endif pthread_attr_destroy( &attr ); if ( ret ) { |
