I myself have recently ended my longtime relationship. First and foremost, if you're friends with this girl already, that's really a plus factor. You should always be there for her, show her that you care as a friend and she'd realize herself that you are interested in her as more than a friend, and when that happens, I know you may have had spent a lot more time with her already and may have shown how you can be her man and how you won't do anything to hurt her.
Aside from that, don't rush things, if she likes you as more than just a friend, she'll show you in her own ways and give you hints whether or not she wants to pursue a relationship with you. Better yet, if she's a really close friend of yours, she'll even tell you straight out that she likes you and appreciates all the time and affection that you have been showing her during one of the lowest points in her life.
Besides, nothing can make us weak in the knees than sweet guys when we're in such a slump. 