Rename a few stragglers

(cherry picked from commit 039393e199)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 26bd16cdc7
commit 906ce3c7fa

@ -2,7 +2,7 @@
<H2>5.1. Designing Database Tables</H2>
<p>
First, there will be two tables added to your database: <em>persons</em> and <em>phone_numbers</em>. These are exactly the same tables as described in chapter <a href="01_02_00_db_spreadsheet.html">1.2. A database and a spreadsheet</a>. A tqlayout for <em>Persons</em> can be found in section <a href="01_02_00_db_spreadsheet.html#data_integrity">Data integrity and validity</a> in that chapter.
First, there will be two tables added to your database: <em>persons</em> and <em>phone_numbers</em>. These are exactly the same tables as described in chapter <a href="01_02_00_db_spreadsheet.html">1.2. A database and a spreadsheet</a>. A layout for <em>Persons</em> can be found in section <a href="01_02_00_db_spreadsheet.html#data_integrity">Data integrity and validity</a> in that chapter.
</p>
<p>

@ -196,7 +196,7 @@ It is right moment for testing your form. Click the <nobr><img src="icons/state_
To make it easier for the form's user to identify meaning of every field widget, these should have added text labels with appropriate titles. To create text labels <nobr><img src="icons/label.png" class="icon"> <em>Label</em></nobr> widget is used.
</p>
<p>
Insert three text label widgets onto the form, placing them on the left hand of the text fields (or on the right hand if your operating system uses right-to-left tqlayout). On inserting every new label, a text cursor appears inside where you can enter desired title. Enter consecutively: <em>Name</em>, <em>Surname</em> and <em>Street</em>. Additionally, on the top of the form insert another label displaying name of the form, i.e. &quot;Persons&quot;. Enlarge this label's size and set larger font using <a href="aa_00_00_menu.html#menu_format_font">Format -&gt; Font</a> menu command.
Insert three text label widgets onto the form, placing them on the left hand of the text fields (or on the right hand if your operating system uses right-to-left layout). On inserting every new label, a text cursor appears inside where you can enter desired title. Enter consecutively: <em>Name</em>, <em>Surname</em> and <em>Street</em>. Additionally, on the top of the form insert another label displaying name of the form, i.e. &quot;Persons&quot;. Enlarge this label's size and set larger font using <a href="aa_00_00_menu.html#menu_format_font">Format -&gt; Font</a> menu command.
</p>
<p>
<br><img src="img/05_04_06_form_with_labels.png">
@ -267,8 +267,8 @@ Using layout in this form improves alignment. Moreover, its space is better deve
<p>
There are two methods to create widget layout.
<ul>
<li>Select two or more widgets that should be placed in a common tqlayout, and select one of the tqlayout types from the context menu item <a href="aa_00_00_menu.html#menu_format_layout">Layout Widgets</a>.</li>
<li>Click a <a hrf="widget_containers">container widget</a> (or a form surface itself), where widgets are inserted and select one of the tqlayout types from the context menu item <a href="aa_00_00_menu.html#menu_format_layout">Layout Widgets</a>. All widgets existing within the container or within the form, being on the same level will be put into a single common tqlayout.</li>
<li>Select two or more widgets that should be placed in a common layout, and select one of the layout types from the context menu item <a href="aa_00_00_menu.html#menu_format_layout">Layout Widgets</a>.</li>
<li>Click a <a hrf="widget_containers">container widget</a> (or a form surface itself), where widgets are inserted and select one of the layout types from the context menu item <a href="aa_00_00_menu.html#menu_format_layout">Layout Widgets</a>. All widgets existing within the container or within the form, being on the same level will be put into a single common layout.</li>
</ul>
In each of these cases you can also use <em>Format -&gt; Layout Widgets</em> menu.
</p>

@ -131,7 +131,7 @@ class HtmlExporter:
if items == None: break
output.write("<tr>")
for item in items:
u = tqunicode(str(self.htmlescape(item)),"latin-1")
u = unicode(str(self.htmlescape(item)),"latin-1")
output.write("<td>%s</td>" % u.encode("utf-8"))
output.write("</tr>\n")
output.write("</table>\n")

@ -240,14 +240,14 @@ KexiTableView::KexiTableView(KexiTableViewData* data, TQWidget* parent, const ch
// Create headers
m_horizontalHeader = new KexiTableViewHeader(this, "topHeader");
m_horizontalHeader->setSelectionBackgroundColor( tqpalette().active().highlight() );
m_horizontalHeader->setSelectionBackgroundColor( palette().active().highlight() );
m_horizontalHeader->setOrientation(Qt::Horizontal);
m_horizontalHeader->setTracking(false);
m_horizontalHeader->setMovingEnabled(false);
connect(m_horizontalHeader, TQT_SIGNAL(sizeChange(int,int,int)), this, TQT_SLOT(slotTopHeaderSizeChange(int,int,int)));
m_verticalHeader = new KexiRecordMarker(this, "rm");
m_verticalHeader->setSelectionBackgroundColor( tqpalette().active().highlight() );
m_verticalHeader->setSelectionBackgroundColor( palette().active().highlight() );
m_verticalHeader->setCellHeight(d->rowHeight);
// m_verticalHeader->setFixedWidth(d->rowHeight);
m_verticalHeader->setCurrentRow(-1);
@ -2508,9 +2508,9 @@ void KexiTableView::paletteChange( const TQPalette &oldPalette )
Q_UNUSED(oldPalette);
//update:
if (m_verticalHeader)
m_verticalHeader->setSelectionBackgroundColor( tqpalette().active().highlight() );
m_verticalHeader->setSelectionBackgroundColor( palette().active().highlight() );
if (m_horizontalHeader)
m_horizontalHeader->setSelectionBackgroundColor( tqpalette().active().highlight() );
m_horizontalHeader->setSelectionBackgroundColor( palette().active().highlight() );
}
const KexiTableView::Appearance& KexiTableView::appearance() const

@ -61,7 +61,7 @@ class KexiTableViewHeaderStyle : public KexiUtils::StyleProxy
KexiTableViewHeader::KexiTableViewHeader(TQWidget * parent, const char * name)
: TQHeader(parent, name)
, m_lastToolTipSection(-1)
, m_selectionBackgroundColor(tqApp->tqpalette().active().highlight())
, m_selectionBackgroundColor(tqApp->palette().active().highlight())
, m_selectedSection(-1)
, m_styleChangeEnabled(true)
{

@ -93,7 +93,7 @@ KexiDisplayUtils::DisplayParameters::DisplayParameters()
KexiDisplayUtils::DisplayParameters::DisplayParameters(TQWidget *w)
{
textColor = w->palette().active().foreground();
selectedTextColor = w->tqpalette().active().highlightedText();
selectedTextColor = w->palette().active().highlightedText();
font = w->font();
}
@ -113,7 +113,7 @@ void KexiDisplayUtils::initDisplayForAutonumberSign(DisplayParameters& par, TQWi
void KexiDisplayUtils::initDisplayForDefaultValue(DisplayParameters& par, TQWidget *widget)
{
par.textColor = SPECIAL_TEXT_COLOR;
par.selectedTextColor = widget->tqpalette().active().highlightedText();
par.selectedTextColor = widget->palette().active().highlightedText();
par.font = widget->font();
par.font.setItalic(true);
}

@ -100,7 +100,7 @@ public:
, highlightedRow(-1)
, editRow(-1)
, rows(0)
, selectionBackgroundColor(tqApp->tqpalette().active().highlight())
, selectionBackgroundColor(tqApp->palette().active().highlight())
, showInsertRow(true)
{
}

@ -122,7 +122,7 @@ void DragBarButton::drawButton( TQPainter* paint )
TQPainter pixPainter(&pix);
const TQColorGroup& g = colorGroup();
tqstyle().drawControl( TQStyle::CE_PushButton, &pixPainter, this, TQRect(0, 0, pixSize.width(), pixSize.height()), colorGroup() );
style().drawControl( TQStyle::CE_PushButton, &pixPainter, this, TQRect(0, 0, pixSize.width(), pixSize.height()), colorGroup() );
int m = 3;
int tw = 0;
@ -130,7 +130,7 @@ void DragBarButton::drawButton( TQPainter* paint )
if ( m_pIcon ) {
pw = m_pIcon->width();
tqstyle().drawItem( &pixPainter, TQRect( m, 0, pw, pixSize.height() ),
style().drawItem( &pixPainter, TQRect( m, 0, pw, pixSize.height() ),
AlignLeft | AlignVCenter,
colorGroup(), isEnabled(),
m_pIcon, TQString(), -1,
@ -144,7 +144,7 @@ void DragBarButton::drawButton( TQPainter* paint )
int x = m + pw + (tw!=0 && pw!=0 ?m:0);
TQString t = KStringHandler::rPixelSqueeze(text(), fm, pixSize.width() - (x + m + 22));
tqstyle().drawItem( &pixPainter, TQRect( x, 0, tw, pixSize.height() ),
style().drawItem( &pixPainter, TQRect( x, 0, tw, pixSize.height() ),
AlignLeft | AlignVCenter|ShowPrefix,
colorGroup(), isEnabled(),
0L, t, -1,

@ -7537,7 +7537,7 @@ void View::runInspector()
TQColor View::highlightColor()
{
return TQApplication::tqpalette().active().highlight().light( 175 );
return TQApplication::palette().active().highlight().light( 175 );
}
} // namespace KSpread

@ -789,7 +789,7 @@ void KWFrameSet::drawFrame( KWFrame *frame, TQPainter *painter, const TQRect &fc
doubleBufPainter->begin( pix );
// Initialize the pixmap to the page background color
// (if the frame is over the page margins, no underlying frame will paint anything there)
doubleBufPainter->fillRect( 0, 0, outerCRect.width(), outerCRect.height(), TQApplication::tqpalette().active().brush( TQColorGroup::Base ) );
doubleBufPainter->fillRect( 0, 0, outerCRect.width(), outerCRect.height(), TQApplication::palette().active().brush( TQColorGroup::Base ) );
// The double-buffer pixmap has (0,0) at outerCRect.topLeft(), so we need to
// translate the double-buffer painter; drawFrameAndBorders will draw using view coordinates.

@ -579,7 +579,7 @@ void KWViewModeText::setPageLayout( KoRuler* hRuler, KoRuler* vRuler, const KoPa
layout.orientation = PG_PORTRAIT;
TQSize cSize = contentsSize();
layout.ptWidth = m_doc->unzoomItX( cSize.width() );
tqlayout.ptHeight = m_doc->unzoomItY( cSize.height() );
layout.ptHeight = m_doc->unzoomItY( cSize.height() );
//kdDebug() << "KWViewModeText::setPageLayout layout size " << layout.ptWidth << "x" << layout.ptHeight << endl;
layout.ptLeft = OFFSET;
layout.ptRight = 0;

@ -144,7 +144,7 @@ KoTemplateCreateDia::KoTemplateCreateDia( const TQCString &templateType, KInstan
rightbox->addWidget(pixbox);
TQVBoxLayout *pixlayout=new TQVBoxLayout(pixbox, KDialogBase::marginHint(),
KDialogBase::spacingHint());
pixtqlayout->addSpacing(pixbox->fontMetrics().height()/2);
pixlayout->addSpacing(pixbox->fontMetrics().height()/2);
pixlayout->addStretch(1);
d->m_default=new TQRadioButton(i18n("&Default"), pixbox);
d->m_default->setChecked(true);

@ -135,7 +135,7 @@ class GroupWidgetBase : public TQWidget
TQStyle::StyleFlags flags = m_mouseDown ? TQStyle::Style_Down : TQStyle::Style_Default;
kapp->style().tqdrawPrimitive(TQStyle::PE_HeaderSection, &p, r, palette().active(), flags);
paintListViewExpander(&p, this, r.height()+2, tqpalette().active(), isOpen());
paintListViewExpander(&p, this, r.height()+2, palette().active(), isOpen());
if (!m_miniicon.isNull()) {
p.drawPixmap(24, (r.height()-m_miniicon.height())/2, m_miniicon);
}

@ -611,7 +611,7 @@ KoTextCursor KoTextView::selectWordUnderCursor( const KoTextCursor& cursor, int
const bool isWordDelimiter = ch.isSpace()
|| ch.category() == TQChar::Punctuation_Open // e.g. '('
|| ch.category() == TQChar::Punctuation_Close // e.g. ')'
|| ch.category() == TQChar::Punctuation_Other // see http://www.fileformat.info/info/tqunicode/category/Po/list.htm
|| ch.category() == TQChar::Punctuation_Other // see http://www.fileformat.info/info/unicode/category/Po/list.htm
;
if( !beginFound && !isWordDelimiter )

Loading…
Cancel
Save