summaryrefslogtreecommitdiffstats
path: root/kpdf/ui
diff options
context:
space:
mode:
Diffstat (limited to 'kpdf/ui')
-rw-r--r--kpdf/ui/minibar.cpp30
-rw-r--r--kpdf/ui/minibar.h2
-rw-r--r--kpdf/ui/pageview.cpp4
-rw-r--r--kpdf/ui/pageview.h2
-rw-r--r--kpdf/ui/pageviewutils.cpp18
-rw-r--r--kpdf/ui/pageviewutils.h2
-rw-r--r--kpdf/ui/presentationwidget.cpp4
-rw-r--r--kpdf/ui/presentationwidget.h2
-rw-r--r--kpdf/ui/propertiesdialog.cpp4
-rw-r--r--kpdf/ui/propertiesdialog.h2
-rw-r--r--kpdf/ui/searchwidget.cpp4
-rw-r--r--kpdf/ui/searchwidget.h2
-rw-r--r--kpdf/ui/thumbnaillist.cpp14
-rw-r--r--kpdf/ui/thumbnaillist.h6
-rw-r--r--kpdf/ui/toc.cpp10
-rw-r--r--kpdf/ui/toc.h2
16 files changed, 54 insertions, 54 deletions
diff --git a/kpdf/ui/minibar.cpp b/kpdf/ui/minibar.cpp
index c5d85cea..db692703 100644
--- a/kpdf/ui/minibar.cpp
+++ b/kpdf/ui/minibar.cpp
@@ -28,7 +28,7 @@
class ProgressWidget : public TQWidget
{
public:
- ProgressWidget( MiniBar * tqparent );
+ ProgressWidget( MiniBar * parent );
void setProgress( float percentage );
protected:
@@ -46,7 +46,7 @@ class ProgressWidget : public TQWidget
class PagesEdit : public TQLineEdit
{
public:
- PagesEdit( MiniBar * tqparent );
+ PagesEdit( MiniBar * parent );
void setPagesNumber( int pages );
void setText( const TQString & );
@@ -67,7 +67,7 @@ class PagesEdit : public TQLineEdit
class HoverButton : public TQPushButton
{
public:
- HoverButton( TQWidget * tqparent );
+ HoverButton( TQWidget * parent );
protected:
void paintEvent( TQPaintEvent * e );
@@ -78,8 +78,8 @@ class HoverButton : public TQPushButton
/** MiniBar **/
-MiniBar::MiniBar( TQWidget * tqparent, KPDFDocument * document )
- : TQFrame( tqparent, "miniBar" ), m_document( document ),
+MiniBar::MiniBar( TQWidget * parent, KPDFDocument * document )
+ : TQFrame( parent, "miniBar" ), m_document( document ),
m_currentPage( -1 )
{
// left spacer
@@ -127,7 +127,7 @@ MiniBar::MiniBar( TQWidget * tqparent, KPDFDocument * document )
connect( m_nextButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( nextPage() ) );
// widget starts hidden (will be shown after opening a document)
- tqparent->hide();
+ parent->hide();
}
MiniBar::~MiniBar()
@@ -146,7 +146,7 @@ void MiniBar::notifySetup( const TQValueVector< KPDFPage * > & pageVector, bool
if ( pages < 1 )
{
m_currentPage = -1;
- TQT_TQWIDGET( tqparent() )->hide();
+ TQT_TQWIDGET( parent() )->hide();
return;
}
@@ -171,7 +171,7 @@ void MiniBar::notifySetup( const TQValueVector< KPDFPage * > & pageVector, bool
m_pagesButton->setText( TQString::number( pages ) );
m_prevButton->setEnabled( false );
m_nextButton->setEnabled( false );
- TQT_TQWIDGET( tqparent() )->show();
+ TQT_TQWIDGET( parent() )->show();
}
void MiniBar::notifyViewportChanged( bool /*smoothMove*/ )
@@ -259,9 +259,9 @@ void MiniBar::slotEmitPrevPage()
/** ProgressWidget **/
-ProgressWidget::ProgressWidget( MiniBar * tqparent )
- : TQWidget( tqparent, "progress", WNoAutoErase ),
- m_miniBar( tqparent ), m_progressPercentage( -1 )
+ProgressWidget::ProgressWidget( MiniBar * parent )
+ : TQWidget( parent, "progress", WNoAutoErase ),
+ m_miniBar( parent ), m_progressPercentage( -1 )
{
setFixedHeight( 4 );
setMouseTracking( true );
@@ -325,8 +325,8 @@ void ProgressWidget::paintEvent( TQPaintEvent * e )
/** PagesEdit **/
-PagesEdit::PagesEdit( MiniBar * tqparent )
- : TQLineEdit( tqparent ), m_miniBar( tqparent ), m_eatClick( false )
+PagesEdit::PagesEdit( MiniBar * parent )
+ : TQLineEdit( parent ), m_miniBar( parent ), m_eatClick( false )
{
// customize look
setFrameShadow( TQFrame::Raised );
@@ -398,8 +398,8 @@ void PagesEdit::wheelEvent( TQWheelEvent * e )
/** HoverButton **/
-HoverButton::HoverButton( TQWidget * tqparent )
- : TQPushButton( tqparent )
+HoverButton::HoverButton( TQWidget * parent )
+ : TQPushButton( parent )
{
setMouseTracking( true );
#if KDE_IS_VERSION(3,3,90)
diff --git a/kpdf/ui/minibar.h b/kpdf/ui/minibar.h
index 99bc13aa..f9857ec7 100644
--- a/kpdf/ui/minibar.h
+++ b/kpdf/ui/minibar.h
@@ -27,7 +27,7 @@ class MiniBar : public TQFrame, public DocumentObserver
Q_OBJECT
TQ_OBJECT
public:
- MiniBar( TQWidget *tqparent, KPDFDocument * document );
+ MiniBar( TQWidget *parent, KPDFDocument * document );
~MiniBar();
// [INHERITED] from DocumentObserver
diff --git a/kpdf/ui/pageview.cpp b/kpdf/ui/pageview.cpp
index 42024f55..de5fad0c 100644
--- a/kpdf/ui/pageview.cpp
+++ b/kpdf/ui/pageview.cpp
@@ -178,8 +178,8 @@ void PageViewTip::maybeTip( const TQPoint &_p )
* other misc functions: only slotRequestVisiblePixmaps and pickItemOnPoint noticeable,
* and many insignificant stuff like this comment :-)
*/
-PageView::PageView( TQWidget *tqparent, KPDFDocument *document )
- : TQScrollView( tqparent, "KPDF::pageView", WStaticContents | WNoAutoErase )
+PageView::PageView( TQWidget *parent, KPDFDocument *document )
+ : TQScrollView( parent, "KPDF::pageView", WStaticContents | WNoAutoErase )
{
// create and initialize private storage structure
d = new PageViewPrivate();
diff --git a/kpdf/ui/pageview.h b/kpdf/ui/pageview.h
index 3bec8be0..8895c9ec 100644
--- a/kpdf/ui/pageview.h
+++ b/kpdf/ui/pageview.h
@@ -44,7 +44,7 @@ class PageView : public TQScrollView, public DocumentObserver
friend class PageViewTip;
public:
- PageView( TQWidget *tqparent, KPDFDocument *document );
+ PageView( TQWidget *parent, KPDFDocument *document );
~PageView();
// Zoom mode ( last 4 are internally used only! )
diff --git a/kpdf/ui/pageviewutils.cpp b/kpdf/ui/pageviewutils.cpp
index 369bcd83..a948d49c 100644
--- a/kpdf/ui/pageviewutils.cpp
+++ b/kpdf/ui/pageviewutils.cpp
@@ -21,8 +21,8 @@
#include "core/page.h"
#include "conf/settings.h"
-PageViewMessage::PageViewMessage( TQWidget * tqparent )
- : TQWidget( tqparent, "pageViewMessage" ), m_timer( 0 )
+PageViewMessage::PageViewMessage( TQWidget * parent )
+ : TQWidget( parent, "pageViewMessage" ), m_timer( 0 )
{
setFocusPolicy( TQ_NoFocus );
setBackgroundMode( NoBackground );
@@ -86,18 +86,18 @@ void PageViewMessage::display( const TQString & message, Icon icon, int duration
}
TQRect tqgeometry( 0, 0, width + 10, height + 8 );
- // resize pixmap, tqmask and widget
- static TQBitmap tqmask;
- tqmask.resize( tqgeometry.size() );
+ // resize pixmap, mask and widget
+ static TQBitmap mask;
+ mask.resize( tqgeometry.size() );
m_pixmap.resize( tqgeometry.size() );
resize( tqgeometry.size() );
- // create and set transparency tqmask
- TQPainter maskPainter( &tqmask);
- tqmask.fill( TQt::black );
+ // create and set transparency mask
+ TQPainter maskPainter( &mask);
+ mask.fill( TQt::black );
maskPainter.setBrush( TQt::white );
maskPainter.drawRoundRect( tqgeometry, 1600 / tqgeometry.width(), 1600 / tqgeometry.height() );
- setMask( tqmask );
+ setMask( mask );
// draw background
TQPainter bufferPainter( &m_pixmap );
diff --git a/kpdf/ui/pageviewutils.h b/kpdf/ui/pageviewutils.h
index 0bd6bd32..ceac9fe2 100644
--- a/kpdf/ui/pageviewutils.h
+++ b/kpdf/ui/pageviewutils.h
@@ -55,7 +55,7 @@ class PageViewItem
class PageViewMessage : public TQWidget
{
public:
- PageViewMessage( TQWidget * tqparent );
+ PageViewMessage( TQWidget * parent );
enum Icon { None, Info, Warning, Error, Find };
void display( const TQString & message, Icon icon = Info, int durationMs = 4000 );
diff --git a/kpdf/ui/presentationwidget.cpp b/kpdf/ui/presentationwidget.cpp
index cc882f7a..d4e14b6a 100644
--- a/kpdf/ui/presentationwidget.cpp
+++ b/kpdf/ui/presentationwidget.cpp
@@ -52,8 +52,8 @@ struct PresentationFrame
};
-PresentationWidget::PresentationWidget( TQWidget * tqparent, KPDFDocument * doc )
- : TQDialog( tqparent, "presentationWidget", true, WDestructiveClose | WStyle_NoBorder),
+PresentationWidget::PresentationWidget( TQWidget * parent, KPDFDocument * doc )
+ : TQDialog( parent, "presentationWidget", true, WDestructiveClose | WStyle_NoBorder),
m_pressedLink( 0 ), m_handCursor( false ), m_document( doc ), m_frameIndex( -1 )
{
// set look and tqgeometry
diff --git a/kpdf/ui/presentationwidget.h b/kpdf/ui/presentationwidget.h
index 00ae2bfb..26db0836 100644
--- a/kpdf/ui/presentationwidget.h
+++ b/kpdf/ui/presentationwidget.h
@@ -37,7 +37,7 @@ class PresentationWidget : public TQDialog, public DocumentObserver
Q_OBJECT
TQ_OBJECT
public:
- PresentationWidget( TQWidget * tqparent, KPDFDocument * doc );
+ PresentationWidget( TQWidget * parent, KPDFDocument * doc );
~PresentationWidget();
void setupActions( KActionCollection * ac );
diff --git a/kpdf/ui/propertiesdialog.cpp b/kpdf/ui/propertiesdialog.cpp
index 02743ccb..d9cee932 100644
--- a/kpdf/ui/propertiesdialog.cpp
+++ b/kpdf/ui/propertiesdialog.cpp
@@ -19,8 +19,8 @@
#include "propertiesdialog.h"
#include "core/document.h"
-PropertiesDialog::PropertiesDialog(TQWidget *tqparent, KPDFDocument *doc)
- : KDialogBase( Tabbed, i18n( "Unknown File" ), Ok, Ok, tqparent, 0, true, true )
+PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc)
+ : KDialogBase( Tabbed, i18n( "Unknown File" ), Ok, Ok, parent, 0, true, true )
{
// Properties
TQFrame *page = addPage(i18n("Properties"));
diff --git a/kpdf/ui/propertiesdialog.h b/kpdf/ui/propertiesdialog.h
index f5541e34..d5e3229a 100644
--- a/kpdf/ui/propertiesdialog.h
+++ b/kpdf/ui/propertiesdialog.h
@@ -17,7 +17,7 @@ class KPDFDocument;
class PropertiesDialog : public KDialogBase
{
public:
- PropertiesDialog( TQWidget *tqparent, KPDFDocument *doc );
+ PropertiesDialog( TQWidget *parent, KPDFDocument *doc );
};
#endif
diff --git a/kpdf/ui/searchwidget.cpp b/kpdf/ui/searchwidget.cpp
index 116df031..7ca3ba49 100644
--- a/kpdf/ui/searchwidget.cpp
+++ b/kpdf/ui/searchwidget.cpp
@@ -28,8 +28,8 @@
#define LEDIT_ID 2
#define FIND_ID 3
-SearchWidget::SearchWidget( TQWidget * tqparent, KPDFDocument * document )
- : KToolBar( tqparent, "iSearchBar" ), m_document( document ),
+SearchWidget::SearchWidget( TQWidget * parent, KPDFDocument * document )
+ : KToolBar( parent, "iSearchBar" ), m_document( document ),
m_searchType( 0 ), m_caseSensitive( false )
{
// change toolbar appearance
diff --git a/kpdf/ui/searchwidget.h b/kpdf/ui/searchwidget.h
index a39e01ad..c2d2d1c1 100644
--- a/kpdf/ui/searchwidget.h
+++ b/kpdf/ui/searchwidget.h
@@ -32,7 +32,7 @@ class SearchWidget : public KToolBar
Q_OBJECT
TQ_OBJECT
public:
- SearchWidget( TQWidget *tqparent, KPDFDocument *document );
+ SearchWidget( TQWidget *parent, KPDFDocument *document );
void clearText();
private:
diff --git a/kpdf/ui/thumbnaillist.cpp b/kpdf/ui/thumbnaillist.cpp
index 8c6ab951..a41869d6 100644
--- a/kpdf/ui/thumbnaillist.cpp
+++ b/kpdf/ui/thumbnaillist.cpp
@@ -30,7 +30,7 @@
class ThumbnailWidget : public TQWidget
{
public:
- ThumbnailWidget( TQWidget * tqparent, const KPDFPage * page, ThumbnailList * tl );
+ ThumbnailWidget( TQWidget * parent, const KPDFPage * page, ThumbnailList * tl );
// set internal parameters to fit the page in the given width
void resizeFitWidth( int width );
@@ -63,8 +63,8 @@ class ThumbnailWidget : public TQWidget
/** ThumbnailList implementation **/
-ThumbnailList::ThumbnailList( TQWidget *tqparent, KPDFDocument *document )
- : TQScrollView( tqparent, "KPDF::Thumbnails", WNoAutoErase | WStaticContents ),
+ThumbnailList::ThumbnailList( TQWidget *parent, KPDFDocument *document )
+ : TQScrollView( parent, "KPDF::Thumbnails", WNoAutoErase | WStaticContents ),
m_document( document ), m_selected( 0 ), m_delayTimer( 0 ), m_bookmarkOverlay( 0 )
{
// set scrollbars
@@ -452,8 +452,8 @@ void ThumbnailList::delayedRequestVisiblePixmaps( int delayMs )
/** ThumbnailWidget implementation **/
-ThumbnailWidget::ThumbnailWidget( TQWidget * tqparent, const KPDFPage * kp, ThumbnailList * tl )
- : TQWidget( tqparent, 0, WNoAutoErase ), m_tl( tl ), m_page( kp ),
+ThumbnailWidget::ThumbnailWidget( TQWidget * parent, const KPDFPage * kp, ThumbnailList * tl )
+ : TQWidget( parent, 0, WNoAutoErase ), m_tl( tl ), m_page( kp ),
m_selected( false ), m_pixmapWidth( 10 ), m_pixmapHeight( 10 )
{
m_labelNumber = m_page->number() + 1;
@@ -552,8 +552,8 @@ void ThumbnailWidget::paintEvent( TQPaintEvent * e )
#define FILTERB_ID 1
-ThumbnailController::ThumbnailController( TQWidget * tqparent, ThumbnailList * list )
- : KToolBar( tqparent, "ThumbsControlBar" )
+ThumbnailController::ThumbnailController( TQWidget * parent, ThumbnailList * list )
+ : KToolBar( parent, "ThumbsControlBar" )
{
// change toolbar appearance
setMargin( 3 );
diff --git a/kpdf/ui/thumbnaillist.h b/kpdf/ui/thumbnaillist.h
index b28bd741..549ea20c 100644
--- a/kpdf/ui/thumbnaillist.h
+++ b/kpdf/ui/thumbnaillist.h
@@ -32,7 +32,7 @@ class ThumbnailList : public TQScrollView, public DocumentObserver
Q_OBJECT
TQ_OBJECT
public:
- ThumbnailList(TQWidget *tqparent, KPDFDocument *document);
+ ThumbnailList(TQWidget *parent, KPDFDocument *document);
~ThumbnailList();
// inherited: return thumbnails observer id
@@ -101,7 +101,7 @@ Q_OBJECT
class ThumbnailsBox : public TQVBox
{
public:
- ThumbnailsBox( TQWidget * tqparent ) : TQVBox( tqparent ) {};
+ ThumbnailsBox( TQWidget * parent ) : TQVBox( parent ) {};
TQSize tqsizeHint() const { return TQSize(); }
};
@@ -116,7 +116,7 @@ class ThumbnailsBox : public TQVBox
class ThumbnailController : public KToolBar
{
public:
- ThumbnailController( TQWidget * tqparent, ThumbnailList * thumbnailList );
+ ThumbnailController( TQWidget * parent, ThumbnailList * thumbnailList );
};
#endif
diff --git a/kpdf/ui/toc.cpp b/kpdf/ui/toc.cpp
index 08880c3d..015ba313 100644
--- a/kpdf/ui/toc.cpp
+++ b/kpdf/ui/toc.cpp
@@ -25,8 +25,8 @@
class TOCItem : public KListViewItem
{
public:
- TOCItem( KListView *tqparent, TOCItem *after, const TQDomElement & e )
- : KListViewItem( tqparent, after, e.tagName() ), m_element( e )
+ TOCItem( KListView *parent, TOCItem *after, const TQDomElement & e )
+ : KListViewItem( parent, after, e.tagName() ), m_element( e )
{
#ifdef TOC_ENABLE_PAGE_COLUMN
if ( e.hasAttribute( "Page" ) )
@@ -35,8 +35,8 @@ class TOCItem : public KListViewItem
setMultiLinesEnabled(true);
}
- TOCItem( KListViewItem *tqparent, TOCItem *after, const TQDomElement & e )
- : KListViewItem( tqparent, after, e.tagName() ), m_element( e )
+ TOCItem( KListViewItem *parent, TOCItem *after, const TQDomElement & e )
+ : KListViewItem( parent, after, e.tagName() ), m_element( e )
{
#ifdef TOC_ENABLE_PAGE_COLUMN
if ( e.hasAttribute( "Page" ) )
@@ -54,7 +54,7 @@ class TOCItem : public KListViewItem
TQDomElement m_element;
};
-TOC::TOC(TQWidget *tqparent, KPDFDocument *document) : KListView(tqparent), m_document(document)
+TOC::TOC(TQWidget *parent, KPDFDocument *document) : KListView(parent), m_document(document)
{
addColumn( i18n("Topic") );
#ifdef TOC_ENABLE_PAGE_COLUMN
diff --git a/kpdf/ui/toc.h b/kpdf/ui/toc.h
index 93824166..eaccc3d9 100644
--- a/kpdf/ui/toc.h
+++ b/kpdf/ui/toc.h
@@ -22,7 +22,7 @@ class TOC : public KListView, public DocumentObserver
Q_OBJECT
TQ_OBJECT
public:
- TOC(TQWidget *tqparent, KPDFDocument *document);
+ TOC(TQWidget *parent, KPDFDocument *document);
~TOC();
// inherited from DocumentObserver