// menu.insertItem(StateMenuItem::checkBoxIconSet(note->hasTag(currentTag), menu.tqcolorGroup()), new StateMenuItem(currentState, sequence, true), i );
// menu.insertItem(StateMenuItem::checkBoxIconSet(note->hasTag(currentTag), menu.colorGroup()), new StateMenuItem(currentState, sequence, true), i );
intheight=TQMAX(mindMap->tqsizeHint().height(),m_columnCount->tqsizeHint().height());// Make all radioButtons vertically equaly-spaced!
mindMap->setMinimumSize(mindMap->tqsizeHint().width(),height);// Because the m_columnCount can be heigher, and make radio1 and radio2 more spaced than radio2 and radio3.
intheight=TQMAX(mindMap->sizeHint().height(),m_columnCount->sizeHint().height());// Make all radioButtons vertically equaly-spaced!
mindMap->setMinimumSize(mindMap->sizeHint().width(),height);// Because the m_columnCount can be heigher, and make radio1 and radio2 more spaced than radio2 and radio3.
@ -459,7 +459,7 @@ void LinkDisplay::paint(TQPainter *painter, int x, int y, int width, int height,
elseif(isIconButtonHovered)
painter->setPen(m_look->effectiveHoverColor());
elseif(!isDefaultColor||(!m_look->color().isValid()&&!m_look->useLinkColor()))// If the color is FORCED or if the link color default to the text color:
painter->setPen(tqcolorGroup.text());
painter->setPen(colorGroup.text());
else
painter->setPen(m_look->effectiveColor());
// Draw the text:
@ -468,14 +468,14 @@ void LinkDisplay::paint(TQPainter *painter, int x, int y, int width, int height,
intwidth()const{returnm_width;}/// << @return the width of the link. It is never less than minWidth()!
intheight()const{returnm_height;}/// << @return the height if the link after having set it a width.
// And finaly, use it:
voidpaint(TQPainter*painter,intx,inty,intwidth,intheight,constTQColorGroup&tqcolorGroup,boolisDefaultColor,boolisSelected,boolisHovered,boolisIconButtonHovered)const;/// << Draw the link on a painter. Set textColor to be !isValid() to use the LinkLook color. Otherwise it will use this color!
TQPixmapfeedbackPixmap(intwidth,intheight,constTQColorGroup&tqcolorGroup,boolisDefaultColor);/// << @return the pixmap to put under the cursor while dragging this object.
voidpaint(TQPainter*painter,intx,inty,intwidth,intheight,constTQColorGroup&colorGroup,boolisDefaultColor,boolisSelected,boolisHovered,boolisIconButtonHovered)const;/// << Draw the link on a painter. Set textColor to be !isValid() to use the LinkLook color. Otherwise it will use this color!
TQPixmapfeedbackPixmap(intwidth,intheight,constTQColorGroup&colorGroup,boolisDefaultColor);/// << @return the pixmap to put under the cursor while dragging this object.
// Eventually get some information about the link display:
booliconButtonAt(constTQPoint&pos)const;/// << @return true if the icon button is under point @p pos.
TQRecticonButtonRect()const;/// << @return the rectangle of the icon button.
@ -83,7 +83,7 @@ class NoteContent // TODO: Mark some methods as const! and some (lik
virtualvoidexportToHTML(HTMLExporter*exporter,intindent)=0;/// << Export the note in an HTML file.
virtualTQStringcssClass()=0;/// << @return the CSS class of the note when exported to HTML
virtualintsetWidthAndGetHeight(intwidth)=0;/// << Retqlayout content with @p width (never less than minWidth()). @return its new height.
virtualvoidpaint(TQPainter*painter,intwidth,intheight,constTQColorGroup&tqcolorGroup,boolisDefaultColor,boolisSelected,boolisHovered)=0;/// << Paint the content on @p painter, at coordinate (0, 0) and with the size (@p width, @p height).
virtualvoidpaint(TQPainter*painter,intwidth,intheight,constTQColorGroup&colorGroup,boolisDefaultColor,boolisSelected,boolisHovered)=0;/// << Paint the content on @p painter, at coordinate (0, 0) and with the size (@p width, @p height).
virtualboolloadFromFile(bool/*lazyLoad*/){returnfalse;}/// << Load the content from the file. The default implementation does nothing. @see fileName().
virtualboolfinishLazyLoad(){returnfalse;}/// << Load what was not loaded by loadFromFile() if it was lazy-loaded
virtualboolsaveToFile(){returnfalse;}/// << Save the content to the file. The default implementation does nothing. @see fileName().
@ -163,7 +163,7 @@ class TextContent : public NoteContent
stretchWidget->tqsetSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
stretchWidget->setSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
stretchWidget->tqsetSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
stretchWidget->setSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space