SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Editor names not showing in GUI

    Apps
    2
    3
    2342
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Elisa last edited by

      Hi!

      Our Samson element has several editors. The icons and descriptions are showing perfectly in the GUI, but the editor names are missing:

      1_1549894945605_example2.png 0_1549894945603_example1.png

      The getName() methods on the editor's GUI sources are set, as well as other methods in the editor sources like getToolTip() and getText(). Am I missing somethig?

      Best regards,

      Elisa

      1 Reply Last reply Reply Quote 1
      • DmitriyMarin
        DmitriyMarin last edited by

        Yes, it is a bug, which will be fixed in the next SDK version.

        You need to implement getDescription() function in you editor.
        Add the following line in the header file of your editor:

        virtual QString	getDescription() const;	///< Returns the menu item text
        

        And in the source file:

        QString SEAwesomeEditor::getDescription() const {
        
        	return QObject::tr("Awesome editor");
        
        }
        

        Dmitriy,
        The SAMSON Team, https://s-c.io

        1 Reply Last reply Reply Quote 2
        • E
          Elisa last edited by

          Thanks!! Solved!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post