diff options
Diffstat (limited to 'freebsd/dependencies/pinentry-tqt/files')
7 files changed, 383 insertions, 0 deletions
diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-secmem_secmem.c b/freebsd/dependencies/pinentry-tqt/files/patch-secmem_secmem.c new file mode 100644 index 000000000..a21d0ba22 --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-secmem_secmem.c @@ -0,0 +1,11 @@ +--- secmem/secmem.c.orig 2016-04-14 14:39:51 UTC ++++ secmem/secmem.c +@@ -88,7 +88,7 @@ log_fatal(char *template, ...) + # define MAP_ANONYMOUS MAP_ANON + #endif + +-#define DEFAULT_POOLSIZE 16384 ++#define DEFAULT_POOLSIZE 16384*4 + + typedef struct memblock_struct MEMBLOCK; + struct memblock_struct { diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-tqt_pinentrydialog.cpp b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_pinentrydialog.cpp new file mode 100644 index 000000000..ea73c0cfc --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_pinentrydialog.cpp @@ -0,0 +1,33 @@ +--- tqt/pinentrydialog.cpp.orig ++++ tqt/pinentrydialog.cpp +@@ -84,18 +84,18 @@ + + _ok->setDefault(true); + +- connect( _ok, SIGNAL( clicked() ), +- this, SIGNAL( accepted() ) ); +- connect( _cancel, SIGNAL( clicked() ), +- this, SIGNAL( rejected() ) ); +- connect( _edit, SIGNAL( textModified(const SecTQString&) ), +- this, SLOT( updateQuality(const SecTQString&) ) ); +- connect (_edit, SIGNAL (backspacePressed()), +- this, SLOT (onBackspace ())); +- connect (this, SIGNAL (accepted ()), +- this, SLOT (accept ())); +- connect (this, SIGNAL (rejected ()), +- this, SLOT (reject ())); ++ connect( _ok, TQ_SIGNAL( clicked() ), ++ this, TQ_SIGNAL( accepted() ) ); ++ connect( _cancel, TQ_SIGNAL( clicked() ), ++ this, TQ_SIGNAL( rejected() ) ); ++ connect( _edit, TQ_SIGNAL( textModified(const SecTQString&) ), ++ this, TQ_SLOT( updateQuality(const SecTQString&) ) ); ++ connect (_edit, TQ_SIGNAL (backspacePressed()), ++ this, TQ_SLOT (onBackspace ())); ++ connect (this, TQ_SIGNAL (accepted ()), ++ this, TQ_SLOT (accept ())); ++ connect (this, TQ_SIGNAL (rejected ()), ++ this, TQ_SLOT (reject ())); + _edit->setFocus(); + } + diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqinternal__p.h b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqinternal__p.h new file mode 100644 index 000000000..d792132dc --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqinternal__p.h @@ -0,0 +1,11 @@ +--- tqt/secqinternal_p.h.orig 2017-12-03 16:28:12 UTC ++++ tqt/secqinternal_p.h +@@ -63,7 +63,7 @@ class TQWidget; + class TQPainter; + class TQPixmap; + +-class Q_EXPORT SecTQSharedDoubleBuffer ++class TQ_EXPORT SecTQSharedDoubleBuffer + { + public: + enum DoubleBufferFlags { diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqlineedit.cpp b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqlineedit.cpp new file mode 100644 index 000000000..a95121326 --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqlineedit.cpp @@ -0,0 +1,111 @@ +--- tqt/secqlineedit.cpp.orig 2019-03-06 08:09:48.000000000 +0100 ++++ tqt/secqlineedit.cpp 2024-04-14 19:43:21.398488000 +0200 +@@ -86,7 +86,7 @@ + #include "ntqaccessible.h" + #endif + +-#ifndef QT_NO_ACCEL ++#ifndef TQT_NO_ACCEL + #include "ntqkeysequence.h" + #define ACCEL_KEY(k) "\t" + TQString(TQKeySequence( TQt::CTRL | TQt::Key_ ## k )) + #else +@@ -235,7 +235,7 @@ + inline bool hasSelectedText() const { return !text.isEmpty() && selend > selstart; } + inline void deselect() { selDirty |= (selend > selstart); selstart = selend = 0; } + void removeSelectedText(); +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + void copy( bool clipboard = TRUE ) const; + #endif + inline bool inSelection( int x ) const +@@ -1018,14 +1018,14 @@ + void SecTQLineEdit::setReadOnly( bool enable ) + { + d->readOnly = enable; +-#ifndef QT_NO_CURSOR ++#ifndef TQT_NO_CURSOR + setCursor( enable ? arrowCursor : ibeamCursor ); + #endif + update(); + } + + +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + /*! + Copies the selected text to the clipboard and deletes it, if there + is any, and if echoMode() is \c Normal. +@@ -1073,15 +1073,15 @@ + #ifndef SECURE + TQString t = q->selectedText(); + if ( !t.isEmpty() && echoMode == SecTQLineEdit::Normal ) { +- q->disconnect( TQApplication::clipboard(), SIGNAL(selectionChanged()), q, 0); ++ q->disconnect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), q, 0); + TQApplication::clipboard()->setText( t, clipboard ? TQClipboard::Clipboard : TQClipboard::Selection ); +- q->connect( TQApplication::clipboard(), SIGNAL(selectionChanged()), +- q, SLOT(clipboardChanged()) ); ++ q->connect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), ++ q, TQ_SLOT(clipboardChanged()) ); + } + #endif + } + +-#endif // !QT_NO_CLIPBOARD ++#endif // !TQT_NO_CLIPBOARD + + /*!\reimp + */ +@@ -1177,7 +1177,7 @@ + void SecTQLineEdit::mouseMoveEvent( TQMouseEvent * e ) + { + +-#ifndef QT_NO_CURSOR ++#ifndef TQT_NO_CURSOR + if ( ( e->state() & MouseButtonMask ) == 0 ) { + if ( !d->readOnly ) + setCursor( ( d->inSelection( e->pos().x() ) ? arrowCursor : ibeamCursor ) ); +@@ -1193,7 +1193,7 @@ + */ + void SecTQLineEdit::mouseReleaseEvent( TQMouseEvent* e ) + { +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + if (TQApplication::clipboard()->supportsSelection() ) { + if ( e->button() == LeftButton ) { + d->copy( FALSE ); +@@ -1286,7 +1286,7 @@ + case Key_B: + cursorForward( e->state() & ShiftButton, -1 ); + break; +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + case Key_C: + copy(); + break; +@@ -1322,7 +1322,7 @@ + clear(); + break; + #endif +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + case Key_V: + if ( !d->readOnly ) + paste(); +@@ -1431,7 +1431,7 @@ + if ( !d->readOnly ) + undo(); + break; +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + case Key_F16: // Copy key on Sun keyboards + copy(); + break; +@@ -1720,7 +1720,7 @@ + + void SecTQLineEditPrivate::init( const SecTQString& txt ) + { +-#ifndef QT_NO_CURSOR ++#ifndef TQT_NO_CURSOR + q->setCursor( readOnly ? arrowCursor : ibeamCursor ); + #endif + q->setFocusPolicy( TQWidget::StrongFocus ); diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqlineedit.h b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqlineedit.h new file mode 100644 index 000000000..cf199b93a --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqlineedit.h @@ -0,0 +1,47 @@ +--- tqt/secqlineedit.h.orig 2019-03-06 07:09:48 UTC ++++ tqt/secqlineedit.h +@@ -80,7 +80,7 @@ class TQPopupMenu; + class TQTextParagraph; + class TQTextCursor; + +-class Q_EXPORT SecTQLineEdit : public TQFrame ++class TQ_EXPORT SecTQLineEdit : public TQFrame + { + TQ_OBJECT + TQ_ENUMS( EchoMode ) +@@ -127,7 +127,7 @@ class Q_EXPORT SecTQLineEdit : public TQFrame (public) + + int alignment() const; + +-#ifndef QT_NO_COMPAT ++#ifndef TQT_NO_COMPAT + void cursorLeft( bool mark, int steps = 1 ) { cursorForward( mark, -steps ); } + void cursorRight( bool mark, int steps = 1 ) { cursorForward( mark, steps ); } + #endif +@@ -153,7 +153,7 @@ class Q_EXPORT SecTQLineEdit : public TQFrame (public) + bool isUndoAvailable() const; + bool isRedoAvailable() const; + +-#ifndef QT_NO_COMPAT ++#ifndef TQT_NO_COMPAT + bool hasMarkedText() const { return hasSelectedText(); } + SecTQString markedText() const { return selectedText(); } + #endif +@@ -175,7 +175,7 @@ public slots: + virtual void setSelection( int, int ); + virtual void setCursorPosition( int ); + virtual void setAlignment( int flag ); +-#ifndef QT_NO_CLIPBOARD ++#ifndef TQT_NO_CLIPBOARD + virtual void cut(); + virtual void copy() const; + virtual void paste(); +@@ -204,7 +204,7 @@ signals: (protected) + void resizeEvent( TQResizeEvent * ); + void drawContents( TQPainter * ); + void windowActivationChange( bool ); +-#ifndef QT_NO_COMPAT ++#ifndef TQT_NO_COMPAT + void repaintArea( int, int ) { update(); } + #endif + diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqstring.cpp b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqstring.cpp new file mode 100644 index 000000000..bc6a87622 --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqstring.cpp @@ -0,0 +1,114 @@ +--- tqt/secqstring.cpp.orig ++++ tqt/secqstring.cpp +@@ -80,8 +80,8 @@ + // IMPORTANT! If you change these, make sure you also change the + // "delete unicode" statement in ~SecTQStringData() in SecTQString.h correspondingly! + +-#define QT_ALLOC_SECTQCHAR_VEC(N) (TQChar*) ::secmem_malloc (sizeof(TQChar) * (N)) +-#define QT_DELETE_SECTQCHAR_VEC(P) ::secmem_free (P) ++#define TQT_ALLOC_SECTQCHAR_VEC(N) (TQChar*) ::secmem_malloc (sizeof(TQChar) * (N)) ++#define TQT_DELETE_SECTQCHAR_VEC(P) ::secmem_free (P) + + + /***************************************************************************** +@@ -188,13 +188,13 @@ + \sa TQChar TQCString TQByteArray SecTQConstString + */ + +-Q_EXPORT SecTQStringData *SecTQString::shared_null = 0; +-QT_STATIC_CONST_IMPL SecTQString SecTQString::null; +-QT_STATIC_CONST_IMPL TQChar TQChar::null; +-QT_STATIC_CONST_IMPL TQChar TQChar::replacement((ushort)0xfffd); +-QT_STATIC_CONST_IMPL TQChar TQChar::byteOrderMark((ushort)0xfeff); +-QT_STATIC_CONST_IMPL TQChar TQChar::byteOrderSwapped((ushort)0xfffe); +-QT_STATIC_CONST_IMPL TQChar TQChar::nbsp((ushort)0x00a0); ++TQ_EXPORT SecTQStringData *SecTQString::shared_null = 0; ++const SecTQString SecTQString::null; ++const TQChar TQChar::null; ++const TQChar TQChar::replacement((ushort)0xfffd); ++const TQChar TQChar::byteOrderMark((ushort)0xfeff); ++const TQChar TQChar::byteOrderSwapped((ushort)0xfffe); ++const TQChar TQChar::nbsp((ushort)0x00a0); + + SecTQStringData* SecTQString::makeSharedNull() + { +@@ -220,7 +220,7 @@ + */ + SecTQString::SecTQString( TQChar ch ) + { +- d = new SecTQStringData( QT_ALLOC_SECTQCHAR_VEC( 1 ), 1, 1 ); ++ d = new SecTQStringData( TQT_ALLOC_SECTQCHAR_VEC( 1 ), 1, 1 ); + d->unicode[0] = ch; + } + +@@ -239,7 +239,7 @@ + { + if ( size ) { + int l = size; +- TQChar* uc = QT_ALLOC_SECTQCHAR_VEC( l ); ++ TQChar* uc = TQT_ALLOC_SECTQCHAR_VEC( l ); + d = new SecTQStringData( uc, 0, l ); + } else { + d = shared_null ? shared_null : (shared_null=new SecTQStringData); +@@ -258,7 +258,7 @@ + d = shared_null ? shared_null : makeSharedNull(); + d->ref(); + } else { +- TQChar* uc = QT_ALLOC_SECTQCHAR_VEC( length ); ++ TQChar* uc = TQT_ALLOC_SECTQCHAR_VEC( length ); + if ( unicode ) + memcpy(uc, unicode, length*sizeof(TQChar)); + d = new SecTQStringData(uc,unicode ? length : 0,length); +@@ -287,7 +287,7 @@ + d = shared_null ? shared_null : makeSharedNull(); + d->ref(); + } else { +- TQChar* uc = QT_ALLOC_SECTQCHAR_VEC( length ); ++ TQChar* uc = TQT_ALLOC_SECTQCHAR_VEC( length ); + if ( unicode ) + memcpy(uc, unicode, length*sizeof(TQChar)); + d = new SecTQStringData(uc,unicode ? length : 0,length); +@@ -429,7 +429,7 @@ + ( newLen * 4 < d->maxl && d->maxl > 4 ) ) { + // detach, grow or shrink + uint newMax = computeNewMax( newLen ); +- TQChar* nd = QT_ALLOC_SECTQCHAR_VEC( newMax ); ++ TQChar* nd = TQT_ALLOC_SECTQCHAR_VEC( newMax ); + if ( nd ) { + uint len = TQMIN( d->len, newLen ); + memcpy( nd, d->unicode, sizeof(TQChar) * len ); +@@ -548,7 +548,7 @@ + len = slen - index; + if ( index == 0 && len == slen ) + return *this; +- register const TQChar *p = unicode()+index; ++ const TQChar *p = unicode()+index; + SecTQString s( len, TRUE ); + memcpy( s.d->unicode, p, len * sizeof(TQChar) ); + s.d->len = len; +@@ -594,10 +594,10 @@ + + if ( s >= d->unicode && (uint)(s - d->unicode) < d->maxl ) { + // Part of me - take a copy. +- TQChar *tmp = QT_ALLOC_SECTQCHAR_VEC( len ); ++ TQChar *tmp = TQT_ALLOC_SECTQCHAR_VEC( len ); + memcpy(tmp,s,len*sizeof(TQChar)); + insert(index,tmp,len); +- QT_DELETE_SECTQCHAR_VEC( tmp ); ++ TQT_DELETE_SECTQCHAR_VEC( tmp ); + return *this; + } + +@@ -669,10 +669,10 @@ + memcpy( d->unicode+index, s, len * sizeof(TQChar) ); + } else if ( s >= d->unicode && (uint)(s - d->unicode) < d->maxl ) { + // Part of me - take a copy. +- TQChar *tmp = QT_ALLOC_SECTQCHAR_VEC( slen ); ++ TQChar *tmp = TQT_ALLOC_SECTQCHAR_VEC( slen ); + memcpy( tmp, s, slen * sizeof(TQChar) ); + replace( index, len, tmp, slen ); +- QT_DELETE_SECTQCHAR_VEC( tmp ); ++ TQT_DELETE_SECTQCHAR_VEC( tmp ); + } else { + remove( index, len ); + insert( index, s, slen ); diff --git a/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqstring.h b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqstring.h new file mode 100644 index 000000000..f2b212abd --- /dev/null +++ b/freebsd/dependencies/pinentry-tqt/files/patch-tqt_secqstring.h @@ -0,0 +1,56 @@ +--- tqt/secqstring.h.orig ++++ tqt/secqstring.h +@@ -87,7 +87,7 @@ class SecTQCharRef; + template <class T> class TQDeepCopy; + #include <stdio.h> + // internal +-struct Q_EXPORT SecTQStringData : public TQShared { ++struct TQ_EXPORT SecTQStringData : public TQShared { + SecTQStringData() : + TQShared(), unicode(0), len(0), maxl(0) { ref(); } + SecTQStringData(TQChar *u, uint l, uint m) : +@@ -109,7 +109,7 @@ struct Q_EXPORT SecTQStringData : public TQShared { + }; + + +-class Q_EXPORT SecTQString ++class TQ_EXPORT SecTQString + { + public: + SecTQString(); // make null string +@@ -125,7 +125,7 @@ + + SecTQString &operator=( const SecTQString & ); // impl-shared copy + +- QT_STATIC_CONST SecTQString null; ++ static const SecTQString null; + + bool isNull() const; + bool isEmpty() const; +@@ -191,7 +191,7 @@ class Q_EXPORT SecTQString (private) + friend class TQDeepCopy<SecTQString>; + }; + +-class Q_EXPORT SecTQCharRef { ++class TQ_EXPORT SecTQCharRef { + friend class SecTQString; + SecTQString& s; + uint p; +@@ -249,7 +249,7 @@ class Q_EXPORT SecTQCharRef { (public) + inline SecTQCharRef SecTQString::at( uint i ) { return SecTQCharRef(this,i); } + inline SecTQCharRef SecTQString::operator[]( int i ) { return at((uint)i); } + +-class Q_EXPORT SecTQConstString : private SecTQString { ++class TQ_EXPORT SecTQConstString : private SecTQString { + public: + SecTQConstString( const TQChar* unicode, uint length ); + ~SecTQConstString(); +@@ -297,7 +297,7 @@ inline bool SecTQString::isEmpty() const + SecTQString non-member operators + *****************************************************************************/ + +-Q_EXPORT inline const SecTQString operator+( const SecTQString &s1, const SecTQString &s2 ) ++TQ_EXPORT inline const SecTQString operator+( const SecTQString &s1, const SecTQString &s2 ) + { + SecTQString tmp( s1 ); + tmp += s2; |