Skip to content

Commit

Permalink
Rename titleText to title
Browse files Browse the repository at this point in the history
  • Loading branch information
Hailin-Wang committed Jul 24, 2022
1 parent 679c04d commit 3e48852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/source/user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ Setup Title Label

.. autosummary::

RibbonPanel.titleText
RibbonPanel.setTitleText
RibbonPanel.title
RibbonPanel.setTitle

Setup Panel Option Button
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
14 changes: 7 additions & 7 deletions ribbon/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,16 +1003,16 @@ def addGallery(
self.addWidget(gallery, rowSpan, colSpan, mode)
return gallery

def setTitleText(self, text: str):
"""Set the title text of the panel.
def setTitle(self, title: str):
"""Set the title of the panel.
:param text: The text to set.
:param title: The title to set.
"""
self._titleLabel.setText(text)
self._titleLabel.setText(title)

def titleText(self):
"""Get the title text of the panel.
def title(self):
"""Get the title of the panel.
:return: The title text.
:return: The title.
"""
return self._titleLabel.text()

0 comments on commit 3e48852

Please sign in to comment.