暫無描述

class_q_c_p_plot_title.tex 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. \hypertarget{class_q_c_p_plot_title}{}\section{Q\+C\+P\+Plot\+Title Class Reference}
  2. \label{class_q_c_p_plot_title}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  3. A layout element displaying a plot title text.
  4. Inheritance diagram for Q\+C\+P\+Plot\+Title\+:\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=4.000000cm]{class_q_c_p_plot_title}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Signals}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. void \hyperlink{class_q_c_p_plot_title_a3a01ede2da3b0b5eda33aa5274cc3523}{selection\+Changed} (bool selected)
  14. \end{DoxyCompactItemize}
  15. \subsection*{Public Member Functions}
  16. \begin{DoxyCompactItemize}
  17. \item
  18. \hyperlink{class_q_c_p_plot_title_aaae17bee2de6d6a1e695f76fb1abed03}{Q\+C\+P\+Plot\+Title} (\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} $\ast$parent\+Plot)
  19. \item
  20. \hyperlink{class_q_c_p_plot_title_a90b9f46ceccbeee41f71c895a8c7ee1f}{Q\+C\+P\+Plot\+Title} (\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} $\ast$parent\+Plot, const Q\+String \&text)
  21. \item
  22. \hypertarget{class_q_c_p_plot_title_aeaa6f2384a611e8a610262b976b3cee5}{}Q\+String {\bfseries text} () const \label{class_q_c_p_plot_title_aeaa6f2384a611e8a610262b976b3cee5}
  23. \item
  24. \hypertarget{class_q_c_p_plot_title_aa5f4cf007db51ccdd1c137191f564119}{}Q\+Font {\bfseries font} () const \label{class_q_c_p_plot_title_aa5f4cf007db51ccdd1c137191f564119}
  25. \item
  26. \hypertarget{class_q_c_p_plot_title_a69f2cae768ff84dbf9f8a387ad617781}{}Q\+Color {\bfseries text\+Color} () const \label{class_q_c_p_plot_title_a69f2cae768ff84dbf9f8a387ad617781}
  27. \item
  28. \hypertarget{class_q_c_p_plot_title_aa865a3656e01ee8db41837afa892f2a3}{}Q\+Font {\bfseries selected\+Font} () const \label{class_q_c_p_plot_title_aa865a3656e01ee8db41837afa892f2a3}
  29. \item
  30. \hypertarget{class_q_c_p_plot_title_ab2262e40edfc41540c1dbc1c4234f9d2}{}Q\+Color {\bfseries selected\+Text\+Color} () const \label{class_q_c_p_plot_title_ab2262e40edfc41540c1dbc1c4234f9d2}
  31. \item
  32. \hypertarget{class_q_c_p_plot_title_a8d75c7cbcf2049c9512a3335d6f11416}{}bool {\bfseries selectable} () const \label{class_q_c_p_plot_title_a8d75c7cbcf2049c9512a3335d6f11416}
  33. \item
  34. \hypertarget{class_q_c_p_plot_title_a9771f3a4bca026484d7c8b5d953b5e82}{}bool {\bfseries selected} () const \label{class_q_c_p_plot_title_a9771f3a4bca026484d7c8b5d953b5e82}
  35. \item
  36. void \hyperlink{class_q_c_p_plot_title_aae5a93e88050dfb2cbf6adc087516821}{set\+Text} (const Q\+String \&text)
  37. \item
  38. void \hyperlink{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}{set\+Font} (const Q\+Font \&font)
  39. \item
  40. void \hyperlink{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}{set\+Text\+Color} (const Q\+Color \&color)
  41. \item
  42. void \hyperlink{class_q_c_p_plot_title_a5245980ead999ceed51dbe702d0e3131}{set\+Selected\+Font} (const Q\+Font \&font)
  43. \item
  44. void \hyperlink{class_q_c_p_plot_title_a09ffd8c52ac8824d00382f84be391b66}{set\+Selected\+Text\+Color} (const Q\+Color \&color)
  45. \item
  46. void \hyperlink{class_q_c_p_plot_title_a8866b07b9fa14877d4cefbf38406c5dd}{set\+Selectable} (bool selectable)
  47. \item
  48. void \hyperlink{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{set\+Selected} (bool selected)
  49. \item
  50. virtual double \hyperlink{class_q_c_p_plot_title_a5b7ae716be9134a48f4e378feb0e6699}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
  51. \end{DoxyCompactItemize}
  52. \subsection*{Protected Member Functions}
  53. \begin{DoxyCompactItemize}
  54. \item
  55. \hypertarget{class_q_c_p_plot_title_a0e2a491864bf8d8e8b159ef38e9d85bd}{}virtual void {\bfseries apply\+Default\+Antialiasing\+Hint} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter) const \label{class_q_c_p_plot_title_a0e2a491864bf8d8e8b159ef38e9d85bd}
  56. \item
  57. \hypertarget{class_q_c_p_plot_title_ae4f1f8d24489628dabb7256363b097d2}{}virtual void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter)\label{class_q_c_p_plot_title_ae4f1f8d24489628dabb7256363b097d2}
  58. \item
  59. virtual Q\+Size \hyperlink{class_q_c_p_plot_title_a695e6037e72a1e129387e7e4a980faea}{minimum\+Size\+Hint} () const
  60. \item
  61. virtual Q\+Size \hyperlink{class_q_c_p_plot_title_a2afaf11a379038e5ca58040a0eb0ae4c}{maximum\+Size\+Hint} () const
  62. \item
  63. \hypertarget{class_q_c_p_plot_title_a22672ef2abe442b1e73b7ee04cff9bdd}{}virtual void {\bfseries select\+Event} (Q\+Mouse\+Event $\ast$event, bool additive, const Q\+Variant \&details, bool $\ast$selection\+State\+Changed)\label{class_q_c_p_plot_title_a22672ef2abe442b1e73b7ee04cff9bdd}
  64. \item
  65. \hypertarget{class_q_c_p_plot_title_ac6dfce05bebdb9bd0bfacd5ff02f3325}{}virtual void {\bfseries deselect\+Event} (bool $\ast$selection\+State\+Changed)\label{class_q_c_p_plot_title_ac6dfce05bebdb9bd0bfacd5ff02f3325}
  66. \item
  67. \hypertarget{class_q_c_p_plot_title_a7e74004e3a68118b16491848708a8b3a}{}Q\+Font {\bfseries main\+Font} () const \label{class_q_c_p_plot_title_a7e74004e3a68118b16491848708a8b3a}
  68. \item
  69. \hypertarget{class_q_c_p_plot_title_ac1b02546563a2e76f97d78a576f82f5a}{}Q\+Color {\bfseries main\+Text\+Color} () const \label{class_q_c_p_plot_title_ac1b02546563a2e76f97d78a576f82f5a}
  70. \end{DoxyCompactItemize}
  71. \subsection*{Protected Attributes}
  72. \begin{DoxyCompactItemize}
  73. \item
  74. \hypertarget{class_q_c_p_plot_title_a0d961bfac1211d59d3b0bc30d35f6379}{}Q\+String {\bfseries m\+Text}\label{class_q_c_p_plot_title_a0d961bfac1211d59d3b0bc30d35f6379}
  75. \item
  76. \hypertarget{class_q_c_p_plot_title_ad9e2c2a2e941f3444cb692a51df0df62}{}Q\+Font {\bfseries m\+Font}\label{class_q_c_p_plot_title_ad9e2c2a2e941f3444cb692a51df0df62}
  77. \item
  78. \hypertarget{class_q_c_p_plot_title_a5d7f834d6522c1a72fb0682c0b7ebe13}{}Q\+Color {\bfseries m\+Text\+Color}\label{class_q_c_p_plot_title_a5d7f834d6522c1a72fb0682c0b7ebe13}
  79. \item
  80. \hypertarget{class_q_c_p_plot_title_a95003186c39bbab902873a8ef4cbb547}{}Q\+Font {\bfseries m\+Selected\+Font}\label{class_q_c_p_plot_title_a95003186c39bbab902873a8ef4cbb547}
  81. \item
  82. \hypertarget{class_q_c_p_plot_title_a8b9760e62af92814c4effdd7ad69c5f9}{}Q\+Color {\bfseries m\+Selected\+Text\+Color}\label{class_q_c_p_plot_title_a8b9760e62af92814c4effdd7ad69c5f9}
  83. \item
  84. \hypertarget{class_q_c_p_plot_title_a7178a0f6c1e633c144c17b4de4e0b840}{}Q\+Rect {\bfseries m\+Text\+Bounding\+Rect}\label{class_q_c_p_plot_title_a7178a0f6c1e633c144c17b4de4e0b840}
  85. \item
  86. \hypertarget{class_q_c_p_plot_title_aadefb5e2b19b1cc7deda0a55ec747884}{}bool {\bfseries m\+Selectable}\label{class_q_c_p_plot_title_aadefb5e2b19b1cc7deda0a55ec747884}
  87. \item
  88. \hypertarget{class_q_c_p_plot_title_afef1342a20f5ca985a20b9cfdc03d815}{}bool {\bfseries m\+Selected}\label{class_q_c_p_plot_title_afef1342a20f5ca985a20b9cfdc03d815}
  89. \end{DoxyCompactItemize}
  90. \subsection{Detailed Description}
  91. A layout element displaying a plot title text.
  92. The text may be specified with \hyperlink{class_q_c_p_plot_title_aae5a93e88050dfb2cbf6adc087516821}{set\+Text}, theformatting can be controlled with \hyperlink{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}{set\+Font} and \hyperlink{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}{set\+Text\+Color}.
  93. A plot title can be added as follows\+:
  94. \begin{DoxyCode}
  95. customPlot->plotLayout()->insertRow(0); \textcolor{comment}{// inserts an empty row above the default axis rect}
  96. customPlot->plotLayout()->addElement(0, 0, \textcolor{keyword}{new} \hyperlink{class_q_c_p_plot_title_aaae17bee2de6d6a1e695f76fb1abed03}{QCPPlotTitle}(customPlot, \textcolor{stringliteral}{"Your Plot Title"}));
  97. \end{DoxyCode}
  98. Since a plot title is a common requirement, \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} offers specialized selection signals for easy interaction with \hyperlink{class_q_c_p_plot_title}{Q\+C\+P\+Plot\+Title}. If a layout element of type \hyperlink{class_q_c_p_plot_title}{Q\+C\+P\+Plot\+Title} is clicked, the signal \hyperlink{class_q_custom_plot_a2137a819e518fee7edd1c0bf5984d8d6}{Q\+Custom\+Plot\+::title\+Click} is emitted. A double click emits the \hyperlink{class_q_custom_plot_ad51d65f6abf5edfaeef6e0519a4c1a2f}{Q\+Custom\+Plot\+::title\+Double\+Click} signal.
  99. \subsection{Constructor \& Destructor Documentation}
  100. \hypertarget{class_q_c_p_plot_title_aaae17bee2de6d6a1e695f76fb1abed03}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  101. \index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  102. \subsubsection[{Q\+C\+P\+Plot\+Title}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Plot\+Title\+::\+Q\+C\+P\+Plot\+Title (
  103. \begin{DoxyParamCaption}
  104. \item[{{\bf Q\+Custom\+Plot} $\ast$}]{parent\+Plot}
  105. \end{DoxyParamCaption}
  106. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_q_c_p_plot_title_aaae17bee2de6d6a1e695f76fb1abed03}
  107. Creates a new \hyperlink{class_q_c_p_plot_title}{Q\+C\+P\+Plot\+Title} instance and sets default values. The initial text is empty (\hyperlink{class_q_c_p_plot_title_aae5a93e88050dfb2cbf6adc087516821}{set\+Text}).
  108. To set the title text in the constructor, rather use \hyperlink{class_q_c_p_plot_title_a90b9f46ceccbeee41f71c895a8c7ee1f}{Q\+C\+P\+Plot\+Title(\+Q\+Custom\+Plot $\ast$parent\+Plot, const Q\+String \&text)}. \hypertarget{class_q_c_p_plot_title_a90b9f46ceccbeee41f71c895a8c7ee1f}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  109. \index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  110. \subsubsection[{Q\+C\+P\+Plot\+Title}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Plot\+Title\+::\+Q\+C\+P\+Plot\+Title (
  111. \begin{DoxyParamCaption}
  112. \item[{{\bf Q\+Custom\+Plot} $\ast$}]{parent\+Plot, }
  113. \item[{const Q\+String \&}]{text}
  114. \end{DoxyParamCaption}
  115. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_q_c_p_plot_title_a90b9f46ceccbeee41f71c895a8c7ee1f}
  116. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
  117. Creates a new \hyperlink{class_q_c_p_plot_title}{Q\+C\+P\+Plot\+Title} instance and sets default values. The initial text is set to {\itshape text}.
  118. \subsection{Member Function Documentation}
  119. \hypertarget{class_q_c_p_plot_title_a2afaf11a379038e5ca58040a0eb0ae4c}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!maximum\+Size\+Hint@{maximum\+Size\+Hint}}
  120. \index{maximum\+Size\+Hint@{maximum\+Size\+Hint}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  121. \subsubsection[{maximum\+Size\+Hint}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Size Q\+C\+P\+Plot\+Title\+::maximum\+Size\+Hint (
  122. \begin{DoxyParamCaption}
  123. {}
  124. \end{DoxyParamCaption}
  125. ) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{class_q_c_p_plot_title_a2afaf11a379038e5ca58040a0eb0ae4c}
  126. Returns the maximum size this layout element (the inner \hyperlink{class_q_c_p_layout_element_affdfea003469aac3d0fac5f4e06171bc}{rect}) may be expanded to.
  127. if a maximum size (\hyperlink{class_q_c_p_layout_element_a74eb5280a737ab44833d506db65efd95}{set\+Maximum\+Size}) was not set manually, parent layouts consult this function to determine the maximum allowed size of this layout element. (A manual maximum size is considered set if it is smaller than Qt\textquotesingle{}s Q\+W\+I\+D\+G\+E\+T\+S\+I\+Z\+E\+\_\+\+M\+A\+X.)
  128. Reimplemented from \hyperlink{class_q_c_p_layout_element_adbd3a00fec44c977150c6be7329eb801}{Q\+C\+P\+Layout\+Element}.
  129. \hypertarget{class_q_c_p_plot_title_a695e6037e72a1e129387e7e4a980faea}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!minimum\+Size\+Hint@{minimum\+Size\+Hint}}
  130. \index{minimum\+Size\+Hint@{minimum\+Size\+Hint}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  131. \subsubsection[{minimum\+Size\+Hint}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Size Q\+C\+P\+Plot\+Title\+::minimum\+Size\+Hint (
  132. \begin{DoxyParamCaption}
  133. {}
  134. \end{DoxyParamCaption}
  135. ) const\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}\label{class_q_c_p_plot_title_a695e6037e72a1e129387e7e4a980faea}
  136. Returns the minimum size this layout element (the inner \hyperlink{class_q_c_p_layout_element_affdfea003469aac3d0fac5f4e06171bc}{rect}) may be compressed to.
  137. if a minimum size (\hyperlink{class_q_c_p_layout_element_a5dd29a3c8bc88440c97c06b67be7886b}{set\+Minimum\+Size}) was not set manually, parent layouts consult this function to determine the minimum allowed size of this layout element. (A manual minimum size is considered set if it is non-\/zero.)
  138. Reimplemented from \hyperlink{class_q_c_p_layout_element_aebe14fb71f858c0f98caf8d342a9864a}{Q\+C\+P\+Layout\+Element}.
  139. \hypertarget{class_q_c_p_plot_title_a3a01ede2da3b0b5eda33aa5274cc3523}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!selection\+Changed@{selection\+Changed}}
  140. \index{selection\+Changed@{selection\+Changed}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  141. \subsubsection[{selection\+Changed}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::selection\+Changed (
  142. \begin{DoxyParamCaption}
  143. \item[{bool}]{selected}
  144. \end{DoxyParamCaption}
  145. )\hspace{0.3cm}{\ttfamily [signal]}}\label{class_q_c_p_plot_title_a3a01ede2da3b0b5eda33aa5274cc3523}
  146. This signal is emitted when the selection state has changed to {\itshape selected}, either by user interaction or by a direct call to \hyperlink{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{set\+Selected}.
  147. \begin{DoxySeeAlso}{See also}
  148. \hyperlink{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{set\+Selected}, \hyperlink{class_q_c_p_plot_title_a8866b07b9fa14877d4cefbf38406c5dd}{set\+Selectable}
  149. \end{DoxySeeAlso}
  150. \hypertarget{class_q_c_p_plot_title_a5b7ae716be9134a48f4e378feb0e6699}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!select\+Test@{select\+Test}}
  151. \index{select\+Test@{select\+Test}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  152. \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Plot\+Title\+::select\+Test (
  153. \begin{DoxyParamCaption}
  154. \item[{const Q\+Point\+F \&}]{pos, }
  155. \item[{bool}]{only\+Selectable, }
  156. \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}}
  157. \end{DoxyParamCaption}
  158. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_plot_title_a5b7ae716be9134a48f4e378feb0e6699}
  159. Layout elements are sensitive to events inside their outer rect. If {\itshape pos} is within the outer rect, this method returns a value corresponding to 0.\+99 times the parent plot\textquotesingle{}s selection tolerance. However, layout elements are not selectable by default. So if {\itshape only\+Selectable} is true, -\/1.\+0 is returned.
  160. See \hyperlink{class_q_c_p_layerable_a4001c4d0dfec55598efa4d531f2179a9}{Q\+C\+P\+Layerable\+::select\+Test} for a general explanation of this virtual method.
  161. \hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} subclasses may reimplement this method to provide more specific selection test behaviour.
  162. Reimplemented from \hyperlink{class_q_c_p_layout_element_a9fcf5d0ea19f2c23b2b528bce2c6f095}{Q\+C\+P\+Layout\+Element}.
  163. \hypertarget{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Font@{set\+Font}}
  164. \index{set\+Font@{set\+Font}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  165. \subsubsection[{set\+Font}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Font (
  166. \begin{DoxyParamCaption}
  167. \item[{const Q\+Font \&}]{font}
  168. \end{DoxyParamCaption}
  169. )}\label{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}
  170. Sets the {\itshape font} of the title text.
  171. \begin{DoxySeeAlso}{See also}
  172. \hyperlink{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}{set\+Text\+Color}, \hyperlink{class_q_c_p_plot_title_a5245980ead999ceed51dbe702d0e3131}{set\+Selected\+Font}
  173. \end{DoxySeeAlso}
  174. \hypertarget{class_q_c_p_plot_title_a8866b07b9fa14877d4cefbf38406c5dd}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Selectable@{set\+Selectable}}
  175. \index{set\+Selectable@{set\+Selectable}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  176. \subsubsection[{set\+Selectable}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Selectable (
  177. \begin{DoxyParamCaption}
  178. \item[{bool}]{selectable}
  179. \end{DoxyParamCaption}
  180. )}\label{class_q_c_p_plot_title_a8866b07b9fa14877d4cefbf38406c5dd}
  181. Sets whether the user may select this plot title to {\itshape selectable}.
  182. Note that even when {\itshape selectable} is set to {\ttfamily false}, the selection state may be changed programmatically via \hyperlink{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{set\+Selected}. \hypertarget{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Selected@{set\+Selected}}
  183. \index{set\+Selected@{set\+Selected}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  184. \subsubsection[{set\+Selected}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Selected (
  185. \begin{DoxyParamCaption}
  186. \item[{bool}]{selected}
  187. \end{DoxyParamCaption}
  188. )}\label{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}
  189. Sets the selection state of this plot title to {\itshape selected}. If the selection has changed, \hyperlink{class_q_c_p_plot_title_a3a01ede2da3b0b5eda33aa5274cc3523}{selection\+Changed} is emitted.
  190. Note that this function can change the selection state independently of the current \hyperlink{class_q_c_p_plot_title_a8866b07b9fa14877d4cefbf38406c5dd}{set\+Selectable} state. \hypertarget{class_q_c_p_plot_title_a5245980ead999ceed51dbe702d0e3131}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Selected\+Font@{set\+Selected\+Font}}
  191. \index{set\+Selected\+Font@{set\+Selected\+Font}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  192. \subsubsection[{set\+Selected\+Font}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Selected\+Font (
  193. \begin{DoxyParamCaption}
  194. \item[{const Q\+Font \&}]{font}
  195. \end{DoxyParamCaption}
  196. )}\label{class_q_c_p_plot_title_a5245980ead999ceed51dbe702d0e3131}
  197. Sets the {\itshape font} of the title text that will be used if the plot title is selected (\hyperlink{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{set\+Selected}).
  198. \begin{DoxySeeAlso}{See also}
  199. \hyperlink{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}{set\+Font}
  200. \end{DoxySeeAlso}
  201. \hypertarget{class_q_c_p_plot_title_a09ffd8c52ac8824d00382f84be391b66}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Selected\+Text\+Color@{set\+Selected\+Text\+Color}}
  202. \index{set\+Selected\+Text\+Color@{set\+Selected\+Text\+Color}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  203. \subsubsection[{set\+Selected\+Text\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Selected\+Text\+Color (
  204. \begin{DoxyParamCaption}
  205. \item[{const Q\+Color \&}]{color}
  206. \end{DoxyParamCaption}
  207. )}\label{class_q_c_p_plot_title_a09ffd8c52ac8824d00382f84be391b66}
  208. Sets the {\itshape color} of the title text that will be used if the plot title is selected (\hyperlink{class_q_c_p_plot_title_a8d441a889d371307df86f1ab7687a333}{set\+Selected}).
  209. \begin{DoxySeeAlso}{See also}
  210. \hyperlink{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}{set\+Text\+Color}
  211. \end{DoxySeeAlso}
  212. \hypertarget{class_q_c_p_plot_title_aae5a93e88050dfb2cbf6adc087516821}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Text@{set\+Text}}
  213. \index{set\+Text@{set\+Text}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  214. \subsubsection[{set\+Text}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Text (
  215. \begin{DoxyParamCaption}
  216. \item[{const Q\+String \&}]{text}
  217. \end{DoxyParamCaption}
  218. )}\label{class_q_c_p_plot_title_aae5a93e88050dfb2cbf6adc087516821}
  219. Sets the text that will be displayed to {\itshape text}. Multiple lines can be created by insertion of \char`\"{}\textbackslash{}n\char`\"{}.
  220. \begin{DoxySeeAlso}{See also}
  221. \hyperlink{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}{set\+Font}, \hyperlink{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}{set\+Text\+Color}
  222. \end{DoxySeeAlso}
  223. \hypertarget{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}{}\index{Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}!set\+Text\+Color@{set\+Text\+Color}}
  224. \index{set\+Text\+Color@{set\+Text\+Color}!Q\+C\+P\+Plot\+Title@{Q\+C\+P\+Plot\+Title}}
  225. \subsubsection[{set\+Text\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Plot\+Title\+::set\+Text\+Color (
  226. \begin{DoxyParamCaption}
  227. \item[{const Q\+Color \&}]{color}
  228. \end{DoxyParamCaption}
  229. )}\label{class_q_c_p_plot_title_a71273e3a0ca6b4c151591b37b9e5ce33}
  230. Sets the {\itshape color} of the title text.
  231. \begin{DoxySeeAlso}{See also}
  232. \hyperlink{class_q_c_p_plot_title_a199fc7170802ea65006c371875349e37}{set\+Font}, \hyperlink{class_q_c_p_plot_title_a09ffd8c52ac8824d00382f84be391b66}{set\+Selected\+Text\+Color}
  233. \end{DoxySeeAlso}
  234. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  235. \item
  236. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  237. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}