pinentry-tqt: updates 2023 - ensure compliance with r14.1.x branch.

Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
pull/10/head
Emanoil Kotsev 1 year ago
parent 35d783f9af
commit 6e74c5a541
No known key found for this signature in database
GPG Key ID: F1EEB8CD9FB16A50

@ -0,0 +1,302 @@
Description: pinentry-tqt:Update Q_ => TQ_ to ensure compliance with r14.1.x branch.
Origin: https://mirror.git.trinitydesktop.org/gitea/TDE/extra-dependencies.git
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tqt/secqinternal_p.h
+++ b/tqt/secqinternal_p.h
@@ -63,7 +63,7 @@
class TQPainter;
class TQPixmap;
-class Q_EXPORT SecTQSharedDoubleBuffer
+class TQ_EXPORT SecTQSharedDoubleBuffer
{
public:
enum DoubleBufferFlags {
--- a/tqt/secqlineedit.cpp
+++ b/tqt/secqlineedit.cpp
@@ -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.
@@ -1081,7 +1081,7 @@
#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 );
--- a/tqt/secqlineedit.h
+++ b/tqt/secqlineedit.h
@@ -80,7 +80,7 @@
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 @@
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 @@
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 @@
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 @@
void resizeEvent( TQResizeEvent * );
void drawContents( TQPainter * );
void windowActivationChange( bool );
-#ifndef QT_NO_COMPAT
+#ifndef TQT_NO_COMPAT
void repaintArea( int, int ) { update(); }
#endif
--- a/tqt/secqstring.cpp
+++ b/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,7 +188,7 @@
\sa TQChar TQCString TQByteArray SecTQConstString
*/
-Q_EXPORT SecTQStringData *SecTQString::shared_null = 0;
+TQ_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);
@@ -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 );
@@ -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 );
--- a/tqt/secqstring.h
+++ b/tqt/secqstring.h
@@ -87,7 +87,7 @@
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 @@
};
-class Q_EXPORT SecTQString
+class TQ_EXPORT SecTQString
{
public:
SecTQString(); // make null string
@@ -191,7 +191,7 @@
friend class TQDeepCopy<SecTQString>;
};
-class Q_EXPORT SecTQCharRef {
+class TQ_EXPORT SecTQCharRef {
friend class SecTQString;
SecTQString& s;
uint p;
@@ -249,7 +249,7 @@
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 @@
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;

@ -1,2 +1,3 @@
0001-avoid-self-describing-as-a-beta.patch
0002-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch
0003-tqt-updates-2023.diff

Loading…
Cancel
Save