Results 1 to 5 of 5

Thread: Inline keyword doubt and... exist outline keyword ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Inline keyword doubt and... exist outline keyword ?

    Exists outline keyword ?
    I have search on the web but it does not exist ?
    I would want to use it, because I would colapse an entire class at QTcreator-editor.
    I think that this posibility can be very usefull. Any way to do this ?
    ( I want to collapse a whole class, including outline functions )
    In case that it does not exists, (and I write the function inside the class definition) is there a way to indicate to the compiler that that function is NOT-INLINE ?
    Thanks ( I hope do you understand it with my poor english)

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Inline keyword doubt and... exist outline keyword ?

    Inline means something completely different.
    http://en.wikipedia.org/wiki/Inline_function

    Read that and than you understand that what you're asking for is not inlining functions or "outlining". What you want is code folding, and that is available in Qt Creator.

    I think this website could use a forum called "posts that made me pee in my pants from laughing"

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Inline keyword doubt and... exist outline keyword ?

    Hey! Do you think I'm stupid ? I know what means inline keyword.
    I asked :
    1 .- does exist 'outline' keyword ?
    2.- If it does not exists, is there a way to code folding (this is the only thing you have answered )
    (And... how can I collapse a class with out functions? , I can ? )
    And... I think this 'General Programming' category is for make this kind of questions ?
    If do you think that there is neccesary, ask to qt people to create a "posts that made me pee in my pants from laughing" category.

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Inline keyword doubt and... exist outline keyword ?

    Quote Originally Posted by tonnot View Post
    Hey! Do you think I'm stupid ?
    Yes

    I know what means inline keyword.
    Amaze me and explain it in your own words.

    I asked :
    1 .- does exist 'outline' keyword ?
    Uhh... No?

    2.- If it does not exists, is there a way to code folding (this is the only thing you have answered )
    The C++ editor in Qt Creator can do code folding. On the left of the editor you have a column with the line numbers and little arrows. These arrows allow you to fold the code.
    If you do not see the line number or folding arrows, do this:
    1. Go to the "Tools" menu and select "Options..."
    2. On the left of the options dialog is a list, unfold the "Text editor" item in that list.
    3. Now you see the option "Display". Click on it.
    4. Check the checkboxes "folding markers" and anything else you like.

    (And... how can I collapse a class with out functions? , I can ? )
    Click on the little arrow next to the line number.

    And... I think this 'General Programming' category is for make this kind of questions ?
    Absolutely, I don't make it a game to be rude, please believe me.
    But your question made me change my pants and that made me very grumpy.

    Look, it would be very nice if you could at least take a little bit of effort to at least try to understand the things you ask. If your question was about code folding in Qt Creator without mentioning that an inline function tells the editor not to fold the code, than everything would be fine.

    If do you think that there is neccesary, ask to qt people to create a "posts that made me pee in my pants from laughing" category.
    Yes, there should be a hall of shame.

  5. The following user says thank you to tbscope for this useful post:

    tonnot (23rd September 2010)

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Inline keyword doubt and... exist outline keyword ?

    Yes... 'good developer vs bad developer'... and understanding of the tools you use. I'm more and more convinced my definition is not very far from being correct.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Why QWindow is not initialized with the NEW keyword?
    By probine in forum Qt Programming
    Replies: 5
    Last Post: 3rd April 2010, 22:28
  2. why MACROS are used between class name and class keyword
    By babu198649 in forum General Programming
    Replies: 6
    Last Post: 4th February 2009, 13:30
  3. "emit" keyword optional when calling signals?
    By will49 in forum Qt Programming
    Replies: 1
    Last Post: 21st November 2008, 01:13
  4. Replies: 2
    Last Post: 29th May 2006, 10:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.